PHP Classes

MIX Template Engine: Template engine that replaces marked keys

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 195 All time: 8,506 This week: 200Up
Version License PHP version Categories
mix 1.0.0Free for non-comm...5.3PHP 5, Templates


This class is a template engine that replaces marked keys.

It can read a template from a file and replaces template keys with values defined associative arrays.

The template file name and the key values array are passed also as single associative array.

Picture of Luis Toscano
  Performance   Level  
Name: Luis Toscano <contact>
Classes: 7 packages by
Country: Colombia Colombia
Age: 36
All time rank: 249413 in Colombia Colombia
Week rank: 387 Up3 in Colombia Colombia Up


$d = array(
    'data' =>
           'name' => 'Jhon',
             'user' => 'Doe',
             'pass' => '"#$%%%',
             'phone' => '3796691'
     'file' =>'name.html'

$mix = new mixing();

echo nl2br($mix->mixer());

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example example of the mix
Plain text file mix.class.php Class it's a primary class for mix template engine.

 Version Control Reuses Unique User Downloads Download Rankings  
This week:0
All time:8,506
This week:200Up
User Comments (1)
This is a very good small class.
9 years ago (Dilip)