PHP Classes

Sfhati PHP engine : Template engine that generates PHP compiled files

Recommend this page to a friend!
  Info   Documentation   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-10 (8 months ago) RSS 2.0 feedStarStarStar 56%Total: 187 All time: 8,628 This week: 68Up
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: 44
All time rank: 32935 in Jordan Jordan
Week rank: 49 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 (2)  
  • php
  • Template
  Files folder image Files (14)  
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 (14)  /  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 (14)  /  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

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 Unique User Downloads Download Rankings  
 85%
Total:187
This week:0
All time:8,628
This week:68Up
 User Ratings  
 
 All time
Utility:80%StarStarStarStarStar
Consistency:90%StarStarStarStarStar
Documentation:75%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1809