Populate template with JSON data: Replace templates using values from a JSON object

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2021-09-12 (6 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 40 This week: 40All time: 10,185 This week: 3Up
Version License PHP version Categories
ssreplacer 1.0GNU General Publi...5PHP 5, Templates
Description Author

This class provides a package to replace templates using values from a JSON object.

It can take a template file and a file with JSON object stored as a string and it replaces the marks in the template using values from the JSON object.

The class can process the template and return a string with template parameter values from the JSON object inserted in the marks.

Picture of Satish B
  Performance   Level  
Name: Satish B is available for providing paid consulting. Contact Satish B .
Classes: 1 package by
Country: India India
Age: ???
All time rank: 4402306 in India India
Week rank: 6 Up1 in India India Up

Screenshots  
  • replacerDemo.png
  • replacerDemo2.png
  Files folder image Files  
File Role Description
Plain text file class.ssReplacer.php Class replacer class
Accessible without login Plain text file data.txt Data Sample data
Accessible without login Plain text file replacerDemo.php Example Demo php explaining the class usage
Accessible without login HTML file template01.html Data sample template

 Version Control Unique User Downloads Download Rankings  
 0%
Total:40
This week:40
All time:10,185
This week:3Up
For more information send a message to info at phpclasses dot org.