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-08-25 (24 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 65 This week: 1All time: 9,737 This week: 278Up
Version License PHP version Categories
siren 1.2Custom (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.

Picture of wim niemans
  Performance   Level  
Name: wim niemans <contact>
Classes: 3 packages by
Country: The Netherlands The Netherlands
Age: 70
All time rank: 398798 in The Netherlands The Netherlands
Week rank: 148 Up3 in The Netherlands The Netherlands Up
Innovation award
Innovation award
Nominee: 2x

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.  

24.8.2020: allows setFile to change the filename
24.8.2020: added variable templateLocation
  Files folder image Files  
File Role Description
Files folder imagelicense (1 file)
Accessible without login Plain text file Doc. code of conduct
Accessible without login Plain text file demo.php Example demo
Accessible without login Plain text file Doc. short readme
Accessible without login Plain text file 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  
This week:1
All time:9,737
This week:278Up

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