esi / simple_tpl
Simple TPL - A Simple Template Engine
Fund package maintenance!
Ko Fi
ericsizemore
Requires
- php: ^8.1 <8.5
Requires (Dev)
- phpstan/phpstan: ^1.11
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/phpunit: ^10.4
This package is auto-updated.
Last update: 2024-11-25 05:34:29 UTC
README
Simple Template Engine is a small, simple text-based template parsing engine that works on text replacement.
Important Note
- 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.
Installation
Composer
$ 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(); ?>
Usage
Some examples have been provided within the examples
folder.
More documentation can be found within the docs
folder.
About
Requirements
- Simple Template Engine works with PHP 8.2.0 or above.
Contributing
See CONTRIBUTING.
Author
Eric Sizemore - admin@secondversion.com - https://www.secondversion.com
License
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
.