Download the PHP package lsolesen/php-template without Composer
On this page you can find all versions of the php package lsolesen/php-template. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download lsolesen/php-template
More information about lsolesen/php-template
Files in lsolesen/php-template
Download lsolesen/php-template
More information about lsolesen/php-template
Files in lsolesen/php-template
Vendor lsolesen
Package php-template
Short Description Lightweight template engine with the same interface as Savant3 and Smarty.
License MIT
Homepage https://github.com/lsolesen/php-template
Package php-template
Short Description Lightweight template engine with the same interface as Savant3 and Smarty.
License MIT
Homepage https://github.com/lsolesen/php-template
Keywords template
Please rate this library. Is it a good library?
Informations about the package php-template
PHP Template Engine
Very simple template engine for PHP Version 4. It is based on the article Beyond the template engine by Brian Lozier.
For a more current PHP 5 implementation of the same ideas, check out phpsavant.com.
Example
And it can be used with the following templates.
<!-- user_list.tpl.php -->
<table>
<tr>
<th>Id</th>
<th>Name</th>
<th>Email</th>
<th>Banned</th>
</tr>
<? foreach($user_list as $user): ?>
<tr>
<td align="center"><?=$user['id'];?></td>
<td><?=$user['name'];?></td>
<td><a href="mailto:<?=$user['email'];?>"><?=$user['email'];?></a></td>
<td align="center"><?=($user['banned'] ? 'X' : ' ');?></td>
</tr>
<? endforeach; ?>
</table>
<!-- index.tpl.php -->
<html>
<head>
<title><?=$title;?></title>
</head>
<body>
<h2><?=$title;?></h2>
<?=$body;?>
</body>
</html>
All versions of php-template with dependencies
PHP Build Version
Package Version
Requires
php Version
>=4.4.0
The package lsolesen/php-template contains the following files
Loading the files please wait ....