Simple Template Engine is a small, simple text-based template parsing engine that works on text replacement.
- The
master
branch currently holds the work in progress version3.x
, which is a break from the backward compatibility promise. This will be resolved once 3.0.0 is released. - Since
3.x
is under development, it is not recommended to use in a production environment. The public api, implementations, etc. can (and will likely) change.
$ composer require esi/simple_tpl
Then, within your project (if not already included), include composer's autoload. For example:
<?php
require_once 'vendor/autoload.php';
use Esi\SimpleTpl\Template;
$tpl = new Template();
?>
Some examples have been provided within the examples
folder.
More documentation can be found within the docs
folder.
- Simple Template Engine works with PHP 8.2.0 or above.
See CONTRIBUTING.
Eric Sizemore - admin@secondversion.com - https://www.secondversion.com
Simple Template Engine's license depends on the version you are using:
v3.0.0
and later is licensed underThe MIT License
.v2.0.1
and prior is licensed under theGNU GPL v3 License
.