PHP Classes

Simple PHP Template Engine Class: Load and process template files replacing marks

Recommend this page to a friend!
  Info   View files Documentation   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-06-28 (6 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 66 All time: 10,287 This week: 120Up
Version License PHP version Categories
simpletemplateengine 1.0Custom (specified...5PHP 5, Templates
Description 

Author

This package can load and process template files replacing marks.

It can take a template file name and process it by replacing template marks with template parameter values.

Template files can be loaded from different directories that can be used to store template files for different themes.

Picture of Faris AL-Otabi
  Performance   Level  
Name: Faris AL-Otabi <contact>
Classes: 12 packages by
Country: Saudi Arabia Saudi Arabia
Innovation award
Innovation award
Nominee: 3x

Documentation

TemplateEngine

Simple PHP template handler

How to use

include_once 'Template.php';

$template = new Template("layout/");

echo $template->loadTemplate("index", ["username" => "admin"]);

  Files folder image Files  
File Role Description
Accessible without login Plain text file index.html Data Template file
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation
Plain text file Template.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:66
This week:0
All time:10,287
This week:120Up