PHPackages                             ui-awesome/html-contracts - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. ui-awesome/html-contracts

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

ui-awesome/html-contracts
=========================

Shared interfaces for the UI Awesome HTML ecosystem: rendering, attribute management, element typing, and form controls.

0.2.0(1w ago)28.6k5BSD-3-ClausePHPPHP ^8.3CI passing

Since Apr 28Pushed 1w agoCompare

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

READMEChangelog (3)Dependencies (12)Versions (12)Used By (5)

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

HTML Contracts for PHP
======================

[](#html-contracts-for-php)

 [ ![PHPStan](https://camo.githubusercontent.com/0c2475fdd33776d4dfcd0cff8e18190a035963b51bcba35acf7de57d2ddb1108/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f75692d617765736f6d652f68746d6c2d636f6e7472616374732f7374617469632e796d6c3f7374796c653d666f722d7468652d6261646765266c6162656c3d5048505374616e266c6f676f3d676974687562) ](https://github.com/ui-awesome/html-contracts/actions/workflows/static.yml) [ ![Security](https://camo.githubusercontent.com/bf1ea0a0381c0aec6a6b522989e11a0f9a5f782722680782aafe86f4eb1d9345/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f75692d617765736f6d652f68746d6c2d636f6e7472616374732f73656375726974792e796d6c3f7374796c653d666f722d7468652d6261646765266c6162656c3d5365637572697479266c6f676f3d676974687562) ](https://github.com/ui-awesome/html-contracts/actions/workflows/security.yml)

 **Contracts (interfaces) for the UI Awesome HTML ecosystem for PHP**
 *Provides shared interfaces for rendering, attribute management, and form control typing across HTML packages.*

### Installation

[](#installation)

```
composer require ui-awesome/html-contracts:^0.2
```

### Interfaces

[](#interfaces)

#### RenderableInterface

[](#renderableinterface)

Core contract for any object that can be rendered as an HTML string. Extends `Stringable`.

```
