PHP Classes

phpEngine: Regular expression match based template engine

Recommend this page to a friend!
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2004-11-10 (11 years ago) RSS 2.0 feedStarStarStar 46%Total: 887 All time: 3,813 This week: 1,045Up
Version License Categories
phpengine 1.0FreewareTemplates
Description Author

This class is a simple template engine meant to be able to separate your PHP scripts code from the HTML code that defines its output.

It uses regular expressions to locate placeholders and replace them with the respective assigned variable values.

Curly braces { } ) are used to identify placeholders. It also supports the spacial tags <loop> and <var> to identify placeholders and iteration loop sections.

Picture of Tomas B
Name: Tomas B <contact>
Classes: 1 package by
Country: Lithuania Lithuania
Age: ???
All time rank: 238012 in Lithuania Lithuania
Week rank: 1577 Up3 in Lithuania Lithuania Up


- Upload all directories and files to a web server and run program.php, located in the "samples" directory, for a quick review of phpEngine functions.
- Open files program.php and thisisonlyatest.pat with your text editor and try to understand how everything is working.
- Analyze the source of the addons.php file.
- If you want to use mysql addon, don't forget to set your hostname, username and password in the mysql.addon.php file

If you need support, write to
or visit

  Files folder image Files  
File Role Description
Accessible without login Plain text file addons.php Test Test MySQL functions
Accessible without login Plain text file include.pat Aux. sample include pattern file
Accessible without login Plain text file license.txt Lic. Non-Commercial License
Accessible without login Plain text file mysql.addon.php Aux. MySQL functions
Plain text file phpEngine_run-up-1.1.2.php Class Class file (main)
Accessible without login Plain text file program.php Example PHP test file
Accessible without login Plain text file readme.txt Doc. Readme file
Accessible without login Plain text file thisisonlyanothertest.pat Test Another template file
Accessible without login Plain text file thisisonlyatest.pat Data Template file

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,813
This week:1,045Up
 User Ratings  
 All time