PHP Classes

SIREN PHP Templating Library: Template engine featuring recursion and nesting

Recommend this page to a friend!
  Info   View files Example   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-05-04 (28 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 54 This week: 3All time: 9,754 This week: 83Up
Version License PHP version Categories
siren 1.0Custom (specified...7Templates, Parsers, PHP 7
Description Author

This package provides a template engine featuring nesting and inclusion.

It provides one base template engine processing class that can parse templates and replace variables with support of recursion.

There is also a sub-class that can also process templates that include other template files and supports nesting of template blocks.

  Performance   Level  
Name: wim niemans <contact>
Classes: 2 packages by
Country: The Netherlands The Netherlands
Age: 69
All time rank: 4143101 in The Netherlands The Netherlands
Week rank: 98 Up4 in The Netherlands The Netherlands Up
Innovation award
Innovation award
Nominee: 1x

Details
SIREN is a base PHP library to do templating in one go.  
It has a simple, sufficient API, performs recursive replacement, and uses an intuitive syntax. That's all you need.  

    syntax: {var} where var  is [text]{var}[text]  
                  where text is '-._[\w\d\]'

SIREN features a (key, value) array of variables and exercises PCRE patterns to parse text. The library supports recursion, including files and processing of blocks.  
  Files folder image Files  
File Role Description
Files folder imagelicense (1 file)
Accessible without login Plain text file code_of_conduct.md Doc. code of conduct
Accessible without login Plain text file demo.php Example demo
Accessible without login Plain text file description.md Doc. short readme
Accessible without login Plain text file readme.md Doc. readme
Plain text file Snippet.class.php Class base class for templates.
Plain text file Templet.class.php Class class that extends Snippet.

  Files folder image Files  /  license  
File Role Description
  Accessible without login Plain text file CDDL_1.LICENSE Lic. CDDL license

 Version Control Unique User Downloads Download Rankings  
 0%
Total:54
This week:3
All time:9,754
This week:83Up

For more information send a message to info at phpclasses dot org.