binarmorker / tinytemplate
A tiny templating engine written in PHP.
This package is not auto-updated.
Last update: 2024-11-07 01:44:05 UTC
README
A tiny templating engine written in PHP. This small engine is not really meant for production environments unless heavily modified to fit your business' needs.
Installation
To install this, please use Composer and import the
project using the following command:
composer require binarmorker/tinytemplate
Usage
To learn how to use the engine, please refer to the examples contained into the 'test' folder.
This package only contains basic rules to display variables and allow loops and conditions. If you wish to extend it, you can create more rules and load them into the Engine, or if you think some rules would be better integrated into the basic package, please submit a pull request.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
This project is distributed with the GPL 3.0 licence.