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
StarStarStar 58%Total: 196 All time: 8,514 This week: 206Up
Version License PHP version Categories
mix 1.0.0Free for non-comm...5.3PHP 5, Templates
Description 

Author

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: 37
All time rank: 249814 in Colombia Colombia
Week rank: 307 Up3 in Colombia Colombia Up

Example

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

$mix = new mixing();
$mix->setMix($d);

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  
 0%1
Total:196
This week:0
All time:8,514
This week:206Up
User Ratings User Comments (1)
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1510
 
This is a very good small class.
9 years ago (Dilip)
70%StarStarStarStar