progminer / util-template-renderer
Abstract Template Renderer for different template engines
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: 2024-12-14 20:52:54 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.