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 (8 months ago) RSS 2.0 feedNot enough user ratingsTotal: 67 All time: 10,281 This week: 70Up
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: 13 packages by
Country: Saudi Arabia Saudi Arabia
Age: 26
All time rank: 303815 in Saudi Arabia Saudi Arabia
Week rank: 101 Up2 in Saudi Arabia Saudi Arabia Up
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:67
This week:0
All time:10,281
This week:70Up