ninejkh / tpl
A simple template engine
Installs: 263
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/ninejkh/tpl
Requires
- php: >=5.5.0
- mobiledetect/mobiledetectlib: ^2.8
Requires (Dev)
- satooshi/php-coveralls: ^1.0
Suggests
- wyrihaximus/html-compress: If installed, will automatically compress html output.
This package is not auto-updated.
Last update: 2025-10-08 20:37:20 UTC
README
ninejkh/tpl
A really really simple template engine, if you think PHP is good enough at doing exactly that. No compiled or cached state, pure PHP.
Install
$ composer require ninejkh/tpl
Usage
<?php require 'vendor/autoload.php'; use NINEJKH\Tpl\Tpl; $tpl = new Tpl('tpl/'); $tpl->assign('foo', 'bar'); $tpl->display('home');
License
Licensed under the MIT License. See the LICENSE file for details.