net_bazzline / php_zend_expressive_template_adapter
free as in freedom template engine adapter for php and zend expressive template interface
Requires
- php: ^5.5 || ^7.0
- container-interop/container-interop: ^1.1
- net_bazzline/php_component_template: 3.1.*
- zendframework/zend-expressive-template: ^1.0
Requires (Dev)
- mikey179/vfsstream: 1.6.*
- phpunit/phpunit: ~4.8||~5.5
- squizlabs/php_codesniffer: ^2.3
Suggests
- aura/di: 3.0.*@beta to make use of Aura.Di dependency injection container
- mouf/pimple-interop: ^1.0 to use Pimple for dependency injection
- zendframework/zend-servicemanager: ^2.5 to use zend-servicemanager for dependency injection
This package is auto-updated.
Last update: 2021-03-05 12:19:13 UTC
README
I still like the idea but there is currently no use case to develop it anymore.
Zend Expressive Adapter For The Bazzline Template Engine for PHP
Provides bazzline's template engine integration for Expressive.
Installation
Install this library using composer:
$ composer require net_bazzline/php_zend_expressive_template_adapter
We recommend using a dependency injection container, and typehint against container-interop. We can recommend the following implementations:
- zend-servicemanager:
composer require zendframework/zend-servicemanager
- pimple-interop:
composer require mouf/pimple-interop
- Aura.Di
Configuration
'templates' => [ 'paths' => [ // namespace / path pairs // // Numeric namespaces imply the default/main namespace. Paths may be // strings or arrays of string paths to associate with the namespace. ], ],
Factories
You can choose between two factories. It depends on the template you want to use, the FileBasedTemplate or the ComplexFileBasedTemplate.
Documentation
See the zend-expressive documentation tree, or browse online at http://zend-expressive.rtfd.org.
History
- upcomming
- @todo
- add CallableComplexFileBasedTemplateManager support
- add unit tests
- @todo
- 0.1.1 - released at 19.08.2016
- updated development dependency
- 0.1.0 - released at 07.02.2016
- initial plumber release
Final Words
Star it if you like it :-). Add issues if you need it. Pull patches if you enjoy it. Write a blog entry if use it. Make a donation if you love it :-].