namboy94 / champlates
Templating for PHP 7.1+
Requires
- php: >=7.1.0
Requires (Dev)
This package is not auto-updated.
Last update: 2024-11-02 00:52:33 UTC
README
Champlates is a library used for translating and abstracting HTML in PHP. You can use champlates to create your own HTML templates in pure PHP using HtmlElements, or use HTML templates using the HtmlTemplate class. The Dictionary class makes it simple to support multiple languages using translation files which are just normal key value pairs in a JSON file
Installation
You can use champlates by adding the requirement
"namboy94/champlates": "dev-master"
to your composer.json
file an then running composer install
. You can then
find the classes in vendor/namboy94/champlates/src
. Thanks to autoloader,
you should be able to easily access the classes from champlates.
Documentation
All classes and methods are documented using DocBlock comments.