ui-awesome / html-attribute
UI Awesome HTML Attribute for PHP.
Fund package maintenance!
terabytesoftw
Installs: 11 630
Dependents: 4
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ui-awesome/html-attribute
Requires
- php: ^8.1
- ui-awesome/html-helper: ^0.6
Requires (Dev)
- infection/infection: ^0.27|^0.32
- maglnet/composer-require-checker: ^4.1
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.1
- phpstan/phpstan-strict-rules: ^2.0.3
- phpunit/phpunit: ^10.5
- rector/rector: ^2.2
- symplify/easy-coding-standard: ^13.0
README
Html attribute
Features
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
composer require ui-awesome/html-attribute:^0.3
Quick start
Below are concise examples showing common attribute tasks.
<?php declare(strict_types=1); namespace App; use UIAwesome\Html\Attribute\Media\{HasAlt, HasSrc}; final class ImageComponent { use HasAlt; use HasSrc; }
Documentation
For detailed configuration options and advanced usage see: