Skip to content

ui-awesome/html-attribute

Repository files navigation

UI Awesome

Html attribute


PHPUnit Mutation Testing PHPStan

Features

Feature Overview

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:

Package information

PHP Latest Stable Version Total Downloads

Quality code

Codecov PHPStan Level Max Super-Linter StyleCI

Our social networks

Follow on X

License

License

About

UI Awesome HTML Attribute Code Generator for PHP.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages