Download the PHP package cinam/template-parser without Composer
On this page you can find all versions of the php package cinam/template-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cinam/template-parser
More information about cinam/template-parser
Files in cinam/template-parser
Download cinam/template-parser
More information about cinam/template-parser
Files in cinam/template-parser
Vendor cinam
Package template-parser
Short Description Template parser
License MIT
Homepage http://github.com/cinam/template-parser
Package template-parser
Short Description Template parser
License MIT
Homepage http://github.com/cinam/template-parser
Keywords template parserdocument parser
Please rate this library. Is it a good library?
Informations about the package template-parser
Template parser
A simple text parser. It allows you to perform following text transformations:
- replace placeholders with scalar variables,
- replace placeholders from array variables using iteration,
- process logical conditions.
There is no limit for nesting arrays.
Usage
Examples
Example 1 - Simple variable
Hello, Peter!
Example 2 - Condition
Your score: 50 points.
Your score: 50 points.
Congratulations, it's the new high score!
Example 3 - Condition with ELSE
You are an adult
Sorry, you are too young
Example 4 - Iteration
Summary:
Peter, your score is 20.
Mike, your score is 30.
John, your score is 30. Congratulations, it's your personal best!
All versions of template-parser with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package cinam/template-parser contains the following files
Loading the files please wait ....