PHP Classes

MIX Template Engine: Template engine that replaces marked keys

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 196 All time: 8,519 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: 8 packages by
Country: Colombia Colombia
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

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 (2)  
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.

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 Reuses Unique User Downloads Download Rankings  
 0%1
Total:196
This week:0
All time:8,519
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:1514
 
This is a very good small class.
10 years ago (Dilip)
70%StarStarStarStar