PHP Classes
elePHPant
Icontem

Sfhati PHP engine : Template engine that generates PHP compiled files

Recommend this page to a friend!
  Info   View files Documentation   Screenshots Screenshots   View files View files (12)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-05-02 (4 years ago) RSS 2.0 feedStarStarStar 56%Total: 167 All time: 8,614 This week: 328Up
Version License PHP version Categories
sfhati-engine 1.0GNU Lesser Genera...5.0PHP 5, Templates, Code Generation
Description Author

This package implements a template engine that generates PHP compiled files.

It takes a given template file and processes it replacing variables and other types of template constructs.

The class return the path of PHP script that is the compiled template ready to be executed.

The package comes with several plugins that implement variable replacement, conditional sections, loops, and including additional template files.

  Performance   Level  
Name: bassam alessawi <contact>
Classes: 2 packages by
Country: Jordan Jordan
Age: 39
All time rank: 34765 in Jordan Jordan
Week rank: 380 Up2 in Jordan Jordan Up

 

Details
# engein
template php engein
/**
 * 25 March 2015. version 1.0
 * 
 * Template engine for PHP,
 * 
 * License: http://creativecommons.org/licenses/LGPL/2.1/
 * 
 * ----------------------------------------------------------------------
 * 
$syntaxcode = new __SYNTAX();
$export_filename = $syntaxcode->openfile('template.inc');
echo $export_filename;

Template.inc code like this : 
 [var:"variable"end var] 
 
 output php file in cache folder contain this code 
 <?php echo $variable;?>
 * 
 * 
 * The __SYNTAX( ) method return output php code, as a string.
 * 
 * see http://sfhati.com/fw/syntax/ for more information.
 * 
 * Notes :
 * # need PHP 5+
 * @author Bassam al-essawi <bassam.a.a.r@gmail.com>
 * @package sfhati
 * @subpackage fw
 * 
 */
Screenshots  
  • Template
  • php
  Files folder image Files  
File Role Description
Files folder imageplugin (6 files)
Files folder imagetemplate (2 files)
Accessible without login HTML file doc.html Doc. Documentation
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file README.md Doc. Auxiliary data
Plain text file syntax.php Class Class source

  Files folder image Files  /  plugin  
File Role Description
  Accessible without login Plain text file each.php Aux. Class source
  Accessible without login Plain text file for.php Aux. Class source
  Accessible without login Plain text file if.php Aux. Class source
  Accessible without login Plain text file include.php Aux. Class source
  Plain text file php.php Class Class source
  Accessible without login Plain text file var.php Aux. Class source

  Files folder image Files  /  template  
File Role Description
  Accessible without login Plain text file template.inc Data Auxiliary data
  Accessible without login Plain text file template_include.inc Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 85%
Total:167
This week:0
All time:8,614
This week:328Up
 User Ratings  
 
 All time
Utility:80%StarStarStarStarStar
Consistency:90%StarStarStarStarStar
Documentation:75%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1721