Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
Reputation | Support forum | Blog (1) | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 99 | All time: 9,701 This week: 296![]() |
Version | License | PHP version | Categories | |||
siren 2.2.4 | Custom (specified... | 7 | Templates, Parsers, PHP 7 |
Description | Author | |
This package provides a template engine featuring nesting and inclusion. |
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.
Release 1.
Allows setFile to refresh the var.
Added the (internal) vars templateLocation and debugInfo.
Added Global Variables: varNames starting with '$'.
Release 2.
Added setVardata() to escape its value from parsing.
Introduced recursionDepth, default is 'auto'.
Allow recursionDepth manipulation.
Added conditional varValues: varNames starting with '?'.
More documentation: full readme, howto use recursion, api docs, license.
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() |
||||
![]() ![]() |
Doc. | code of conduct | ||
![]() ![]() |
Example | demo | ||
![]() ![]() |
Doc. | short readme | ||
![]() ![]() |
Doc. | readme | ||
![]() ![]() |
Doc. | Howto use recursion in SIREN using simple PHP | ||
![]() ![]() |
Doc. | api docs | ||
![]() |
Class | base class for templates. | ||
![]() |
Class | class that extends Snippet. |
![]() |
/ | examples |
File | Role | Description |
---|---|---|
![]() ![]() |
Example | example of an application for education / studying purposes only |
![]() |
/ | license |
File | Role | Description |
---|---|---|
![]() ![]() |
Lic. | CDDL license |
![]() ![]() |
Lic. | EUPL license |
![]() ![]() |
Lic. | license options |
Version Control | Reuses | Unique User Downloads | Download Rankings | ||||||||||||||||
0% | 1 |
|
|
Applications that use this package |
Web Application Platform based on Graph Notation |
If you know an application of this package, send a message to the author to add a link here.
Other classes that need this package |
Class | Why it is needed | Dependency |
---|---|---|
Sirenade PHP Template Compiler | Parsing and Substituting is left to Siren or any other package that supports it using the same method names. | Required |