progminer / util-template-renderer
Abstract Template Renderer for different template engines
Installs: 142
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/progminer/util-template-renderer
Requires
- php: ~7.0
 
Requires (Dev)
- phpunit/phpunit: ^7
 - symfony/config: ^4.1
 - twig/twig: 2.x-dev
 
Suggests
- symfony/config: To use the php template renderer
 - twig/twig: To use the twig template renderer
 
This package is auto-updated.
Last update: 2025-10-14 22:30:32 UTC
README
Install
Via Composer
$ composer require progminer/util-template-renderer
Usage
The library has some classes and one interface for abstracting from different template engines.
ProgMinerUtils\TemplateRenderer\ITemplateRenderer is interface for template engines abstractions. You can use it for use abstractions in your code.
Library has some included abstractions: for callable templates, for PHP templates and for Twig templates. Also, library has ProgMinerUtils\TemplateRenderer\DelegatingTemplateRenderer for use several abstractions at one time.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email eridan200@mail.ru instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.