PHPackages                             ui-awesome/html-attribute - 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. ui-awesome/html-attribute

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

ui-awesome/html-attribute
=========================

UI Awesome HTML Attribute Library for PHP.

0.5.2(3mo ago)129.7k↑33.3%4BSD-3-ClausePHPPHP ^8.1CI passing

Since Mar 5Pushed 2mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (10)Versions (15)Used By (4)

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

Html attribute
==============

[](#html-attribute)

 [ ![PHPUnit](https://camo.githubusercontent.com/cb54fff78938a6897d1e3c68652fc873141f0d658eb31f5b9c684a5760da80d8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f75692d617765736f6d652f68746d6c2d6174747269627574652f6275696c642e796d6c3f7374796c653d666f722d7468652d6261646765266c6162656c3d504850556e6974266c6f676f3d676974687562) ](https://github.com/ui-awesome/html-attribute/actions/workflows/build.yml) [ ![Mutation Testing](https://camo.githubusercontent.com/e308664c9ba1380d2f0f328aabfe55f1caecae0a737c47ee379b7a99cd51642b/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666f722d7468652d62616467652675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d25324675692d617765736f6d6525324668746d6c2d6174747269627574652532466d61696e) ](https://dashboard.stryker-mutator.io/reports/github.com/ui-awesome/html-attribute/main) [ ![PHPStan](https://camo.githubusercontent.com/25fc4908a3ba4581f2d2f8aa5e6724e132ff0ee2475a619adc20193c29116539/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f75692d617765736f6d652f68746d6c2d6174747269627574652f7374617469632e796d6c3f7374796c653d666f722d7468652d6261646765266c6162656c3d5048505374616e266c6f676f3d676974687562) ](https://github.com/ui-awesome/html-attribute/actions/workflows/static.yml)

Features
--------

[](#features)

  ![Feature Overview](./docs/svgs/features-mobile.svg) **A focused library for building and rendering structured HTML attributes**
 *Type-safe helpers and value objects to compose complex attribute structures (classes, data-attributes, ARIA, etc.).*

### Installation

[](#installation)

```
composer require ui-awesome/html-attribute:^0.3
```

### Quick start

[](#quick-start)

Below are concise examples showing common attribute tasks.

```
