binarmorker/tinytemplate

A tiny templating engine written in PHP.

1.1.3 2016-06-22 00:09 UTC

This package is not auto-updated.

Last update: 2024-11-21 01:49:17 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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

This project is distributed with the GPL 3.0 licence.