Download the PHP package davro/fabrication without Composer
On this page you can find all versions of the php package davro/fabrication. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download davro/fabrication
More information about davro/fabrication
Files in davro/fabrication
Package fabrication
Short Description DOM based Template Engine no placeholders!
License LGPL-3.0-or-later
Homepage http://davro.net/
Informations about the package fabrication
Fabrication Engine
Introduction
PHP Template Engine based on the Document Object Model.
The FabricationEngine engine is not like most of the other templating engine's on the market, mainly because the engine has no concept of place holders, it is only concerned with elements and attributes, structures, expressions and instructions for content that requires processing.
Structures are the templates and expressions are paths to the elements contained within the Document Object Model. The FabricationEngine extends the PHP builtin DOMDocument in many ways and enables the native usage of the XPath object. This allows for an insanely flexible and extensible templating engine.
You can create a DOM structure by loading a html, xhtml, xml string or simply by loading a file, or you can build your own document structure by using the native DOMDoument API. Also there is a specifcation method with the ability to recursivly create structures. There are also some advanced dateset templating features.
Features
Templating without place holders. Dataset Templating.
Documentation
Example: Assign key, value pair and output.
Simple example of Input/Output.
Documentation example, Assign.
Example: Assign ID #key, value pair.
ID keys are automatically mapped to DOM elements with matching identifiers.
Documentation example, Assign by ID.
Example: Input class .key, value pair.
Class keys are automatically mapped to elements with matching class identifiers.
Documentation examples.
Composer and Tagging notes.
https://packagist.org/packages/davro/fabrication
$ git tag 1.0.5 $ git tag 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5
$ git push --tags Total 0 (delta 0), reused 0 (delta 0) To https://github.com/davro/fabrication.git
- [new tag] 1.0.5 -> 1.0.5
Tagging a branch on github will also notify packagist.org to update to the new tag.
Contributors
- David Stevens (davro) (https://www.davro.net)
License
Fabrication Engine is released under the LGPL license.