Download the PHP package everton3x/html-object-model without Composer
On this page you can find all versions of the php package everton3x/html-object-model. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download everton3x/html-object-model
More information about everton3x/html-object-model
Files in everton3x/html-object-model
Package html-object-model
Short Description Library for creating object-oriented HTML entities, in the Document Object Model style.
License MIT
Informations about the package html-object-model
Html Object Model
It provides web developers with an abstraction for html entities similar to the Document Object Model.
Anyone who uses PHP for web development is used to using object orientation daily. However, when the developer goes on to create the user interface, he invariably has to leave object orientation to write markup code. Even if the web developer uses some template tools, like Twig, even so, he needs to have a lot of work with HTML making the models, besides needing to use a whole library of templates, usually bigger and with more features than necessary.
It is for this context that the Html Object Model was conceived: to make it possible to develop user interfaces in fully object-oriented HTML. Html Object Model is inspired by the PHP Object Model Document and allows the web developer to create HTML in an object-oriented way.
Installation
The standard method of installation is through Composer:
Use
The Html Object Model workflow follows the following scheme:
Create -> Configure -> Build
See an example:
The generated html code should look something like:
Html Object Model offers many other methods for manipulating attributes and children (nodes) in HTML entities created with this library. Be sure to read the documentation to learn about all the available features and about API.
How to contribute
Please, see the CONTRIBUTING section on project wiki.