Home

Awesome

t.php

A tiny php templating framework based on t.js

t.php is a simple solution to interpolating values in an html string.

Features

How to use

$template = new T("<div>Hello {{=name}}</div>");
echo $template->parse(array('name' => 'World!'));

For more advanced usage check the t_test.php.

This software is released under the MIT license.

Alternatives

Javascript version maintained by @jasonmoo


<a href="https://ramon.codes" target="_blank"> <img src="https://ws.ramon.codes/hit.svg?referrer=github.com&title=GitHub%20/%20t.php&location=https://github.com/ramonszo/t.php" width="24" height="24" /> </a>