PHP Classes

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
2024-01-10 (2 months ago) RSS 2.0 feedStarStarStar 56%Total: 186 This week: 1All time: 8,635 This week: 560Up
Version License PHP version Categories
sfhati-engine 1.5GNU 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.

Picture of bassam alessawi
  Performance   Level  
Name: bassam alessawi <contact>
Classes: 2 packages by
Country: Jordan Jordan
Age: 43
All time rank: 33005 in Jordan Jordan
Week rank: 106 Up1 in Jordan Jordan Up

Documentation

 

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  
  • php
  • Template
  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:186
This week:1
All time:8,635
This week:560Up
 User Ratings  
 
 All time
Utility:80%StarStarStarStarStar
Consistency:90%StarStarStarStarStar
Documentation:75%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1785