PHP Classes

PHP Templating Engine: Process templates in PHP, JSON and CSS formats

Recommend this page to a friend!
  Info   View files Example   View files View files (20)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-02-08 (7 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 36 All time: 10,776 This week: 105Up
Version License PHP version Categories
php__templating_engi 1.0.0MIT/X Consortium ...5PHP 5, Templates
Description 

Author

This package can process templates in PHP, JSON, and CSS formats.

It can take as parameters the template content as a string, the language of the template data, and an array of parameter values.

The package can replace the template data with parameter values and returns the processed template as a string.


They said it couldn't be done. So I applied a new approach and was able to do it. So not only can the example code rewrite css and html files that have php vars in them, but also can read the made files and save the output to a variable for echoing later.

Picture of jon
Name: jon <contact>
Classes: 5 packages by
Country: New Zealand New Zealand
Age: ???
All time rank: 418217 in New Zealand New Zealand
Week rank: 568 Up4 in New Zealand New Zealand Up

  Files folder image Files  
File Role Description
Files folder imagetemplating_engine (12 files, 2 directories)

  Files folder image Files  /  templating_engine  
File Role Description
Files folder imagefunctions (7 files)
Files folder imagejs (1 file)
  Accessible without login Plain text file editor.php Aux. Auxiliary script
  Accessible without login Plain text file index.php Example Example script
  Accessible without login Plain text file stylesheet.css Data Auxiliary data
  Accessible without login Plain text file stylesheet2.css Data Auxiliary data
  Accessible without login Plain text file template.html Data Template example
  Accessible without login Plain text file template.json Data Auxiliary data
  Accessible without login Plain text file template.php Aux. Auxiliary script
  Accessible without login Plain text file template_00001.html Data Template data
  Accessible without login Plain text file template_00001.php Aux. Auxiliary script
  Accessible without login Plain text file tmp.php Data Template script
  Accessible without login Plain text file tmp_001.php Aux. Auxiliary script
  Accessible without login HTML file tmp_template_00001.html Doc. Documentation

  Files folder image Files  /  templating_engine  /  functions  
File Role Description
  Accessible without login Plain text file echo_var.php Aux. Auxiliary script
  Accessible without login Plain text file ev.php Aux. Auxiliary script
  Accessible without login Plain text file evp.php Aux. Auxiliary script
  Accessible without login Plain text file php_templator.php Aux. Auxiliary script
  Accessible without login Plain text file templater.php Aux. Auxiliary script
  Accessible without login Plain text file templater_json.php Aux. Auxiliary script
  Accessible without login Plain text file templater_php.php Aux. Auxiliary script

  Files folder image Files  /  templating_engine  /  js  
File Role Description
  Accessible without login Plain text file jquery-3.3.1.js Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:36
This week:0
All time:10,776
This week:105Up