ninejkh/tpl

A simple template engine

0.3.0 2018-11-10 14:46 UTC

This package is not auto-updated.

Last update: 2024-04-24 14:22:16 UTC


README

Build Status Scrutinizer Code Quality Coverage Status Latest Stable Version Packagist Latest Unstable Version License

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.

Author Information

9JKH (Pty) Ltd.