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 (16 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 42 This week: 4All time: 10,173 This week: 46Up
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: 4399306 in India India
Week rank: 48 Up8 in India India Up

  • 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  
This week:4
All time:10,173
This week:46Up
For more information send a message to info at phpclasses dot org.