PHPackages                             everton3x/html-object-model - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. everton3x/html-object-model

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

everton3x/html-object-model
===========================

Library for creating object-oriented HTML entities, in the Document Object Model style.

v1.0.0-stable(6y ago)02MITHTMLPHP ^7.4CI failing

Since Mar 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/everton3x/html-object-model)[ Packagist](https://packagist.org/packages/everton3x/html-object-model)[ RSS](/packages/everton3x-html-object-model/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

Html Object Model
=================

[](#html-object-model)

**It provides web developers with an abstraction for html entities similar to the Document Object Model.**

[![](https://github.com/everton3x/html-object-model/workflows/Code%20Quality/badge.svg)](https://github.com/everton3x/html-object-model/workflows/Code%20Quality/badge.svg)[![](https://camo.githubusercontent.com/b7e001c1cf747ecda727d7382572e163dac95b9dce6d3f8a1f88ff26de7faf82/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f65766572746f6e33782f68746d6c2d6f626a6563742d6d6f64656c)](https://camo.githubusercontent.com/b7e001c1cf747ecda727d7382572e163dac95b9dce6d3f8a1f88ff26de7faf82/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f65766572746f6e33782f68746d6c2d6f626a6563742d6d6f64656c)[![](https://camo.githubusercontent.com/21cae5febb80d35289ebee9a8039797c8d1c7817971af5a870040e1f29bf8980/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f65766572746f6e33782f68746d6c2d6f626a6563742d6d6f64656c)](https://camo.githubusercontent.com/21cae5febb80d35289ebee9a8039797c8d1c7817971af5a870040e1f29bf8980/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f65766572746f6e33782f68746d6c2d6f626a6563742d6d6f64656c)[![](https://camo.githubusercontent.com/1880b4f1d18d5d7065f3e8ab0a7271c5a2848bbf3939642ce652772cb8688794/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f65766572746f6e33782f68746d6c2d6f626a6563742d6d6f64656c)](https://camo.githubusercontent.com/1880b4f1d18d5d7065f3e8ab0a7271c5a2848bbf3939642ce652772cb8688794/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f65766572746f6e33782f68746d6c2d6f626a6563742d6d6f64656c)[![](https://camo.githubusercontent.com/ea33d619771cb435b6fef92c34514e01fe4bdaaf6ab3964820bfd5483b21d6db/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f65766572746f6e33782f68746d6c2d6f626a6563742d6d6f64656c)](https://camo.githubusercontent.com/ea33d619771cb435b6fef92c34514e01fe4bdaaf6ab3964820bfd5483b21d6db/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f65766572746f6e33782f68746d6c2d6f626a6563742d6d6f64656c)

Anyone who uses [PHP](https://php.net) 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](https://twig.symfony.com/), 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](https://www.php.net/manual/en/book.dom.php) and allows the web developer to create *HTML* in an object-oriented way.

Installation
------------

[](#installation)

The standard method of installation is through [Composer](https://getcomposer.org/):

```
composer require everton3x/html-object-model
```

Use
---

[](#use)

The **Html Object Model** workflow follows the following scheme:

**Create -&gt; Configure -&gt; Build**

See an example:

```
