PHP Classes

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

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 70 All time: 10,286 This week: 47Up
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: 16 packages by
Country: Saudi Arabia Saudi Arabia
Age: 27
All time rank: 276110 in Saudi Arabia Saudi Arabia
Week rank: 10 Up1 in Saudi Arabia Saudi Arabia Up
Innovation award
Innovation award
Nominee: 5x

Winner: 1x

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 (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:70
This week:0
All time:10,286
This week:47Up