phauthentic / presentation
A framework and library agnostic presentation layer implementation. The purpose of this is to provide a data transfer object to make your application independent from the underlying rendering implementation.
Requires
- php: ^7.1
- psr/container: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
- phpunit/phpunit: ^7.5
- psr/cache: ^1.0
- squizlabs/php_codesniffer: ^3.3
- twig/twig: ^2.7
- zordius/lightncandy: dev-master
Suggests
- ext-simplexml: Required if you want to use the SimpleXMLRenderer
- twig/twig: Required if you want to use the Twig template engine
- zordius/lightncandy: Required if you want to use the Lightncandy mustache template engine
This package is auto-updated.
Last update: 2024-10-29 05:29:08 UTC
README
WORK IN PROGRESS - NOT READY FOR PRODUCTION!
A framework and library agnostic presentation layer implementation. The purpose of this is to provide a data transfer object to make your application independent from the underlying rendering implementation.
This library uses a view object that will carry all the information from where ever to the renderer objects, that will read the information and render the desired output depending on the underlying library and implementation. It is pretty easy so switch the rendering sub system with this approach and everything is strict typed as well.
Featured renderer included
- Twig via twig/twig
- Mustache and Handlebars via zordius/lightncandy
- pdf documents via wkhtmltopdf
- plain php templates
Missing something? It is very easy to implement your own renderer!
Documentation & Installation
Please check the docs folder.
Copyright & License
Licensed under the MIT license.
Copyright (c) Phauthentic