PHPackages                             ui-awesome/html-core - 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. [Templating &amp; Views](/categories/templating)
4. /
5. ui-awesome/html-core

ActiveLibrary[Templating &amp; Views](/categories/templating)

ui-awesome/html-core
====================

Core HTML tag rendering foundation for PHP: abstract bases for block, inline, input, and void elements, lifecycle hooks, simple factory, and defaults/theme providers.

0.6.0(2mo ago)129.2k↑2011.1%[6 PRs](https://github.com/ui-awesome/html-core/pulls)3BSD-3-ClausePHPPHP ^8.3CI passing

Since Mar 30Pushed 5d ago1 watchersCompare

[ Source](https://github.com/ui-awesome/html-core)[ Packagist](https://packagist.org/packages/ui-awesome/html-core)[ RSS](/packages/ui-awesome-html-core/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (9)Dependencies (25)Versions (20)Used By (3)

 [ ![UI Awesome](https://raw.githubusercontent.com/ui-awesome/.github/refs/heads/main/logo/ui_awesome.png) ](https://github.com/ui-awesome/html-core)

Html Core
=========

[](#html-core)

 [ ![PHPUnit](https://camo.githubusercontent.com/17f1a9430ea115e7eff85ad0f014d501940bd3e6456ec6ec3cca79b3030d04af/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f75692d617765736f6d652f68746d6c2d636f72652f6275696c642e796d6c3f7374796c653d666f722d7468652d6261646765266c6162656c3d504850556e6974266c6f676f3d676974687562) ](https://github.com/ui-awesome/html-core/actions/workflows/build.yml) [ ![Mutation Testing](https://camo.githubusercontent.com/e2a24b8b2f091b3bd39dc0dda2c66a41384587b1203a75c87f726d47041a2299/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666f722d7468652d62616467652675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d25324675692d617765736f6d6525324668746d6c2d636f72652532466d61696e) ](https://dashboard.stryker-mutator.io/reports/github.com/ui-awesome/html-core/main) [ ![PHPStan](https://camo.githubusercontent.com/20e8d9fc226262f1878ae54e052c1cfad8df811fd4b54e6374834526a2694f7c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f75692d617765736f6d652f68746d6c2d636f72652f7374617469632e796d6c3f7374796c653d666f722d7468652d6261646765266c6162656c3d5048505374616e266c6f676f3d676974687562) ](https://github.com/ui-awesome/html-core/actions/workflows/static.yml)

 **A type-safe PHP library for standards-compliant HTML tag rendering**
 *Build and render block, inline, input, and void elements with immutable fluent APIs.*

Features
--------

[](#features)

  ![Feature Overview](./docs/svgs/features.svg)### Installation

[](#installation)

```
composer require ui-awesome/html-core:^0.6
```

### Quick start

[](#quick-start)

#### Rendering HTML tags with enums

[](#rendering-html-tags-with-enums)

Renders begin/end tags and full elements using standards-compliant tag enums.

```
