Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ui-awesome/html-concern

UI Awesome HTML Concern Code Generator for PHP.
https://github.com/ui-awesome/html-concern

List: html-concern

html-concern php ui-awesome

Last synced: about 2 months ago
JSON representation

UI Awesome HTML Concern Code Generator for PHP.

Awesome Lists containing this project

README

        





UI Awesome HTML Concern Code Generator for PHP.





PHPUnit


Codecov


Infection


Psalm


Style ci

## Installation

The preferred way to install this extension is through [composer](https://getcomposer.org/download/).

Either run

```shell
composer require --prefer-dist ui-awesome/html-concern:^0.2
```

or add

```json
"ui-awesome/html-concern": "^0.2"
```

to the require section of your `composer.json` file.

## Usage

List of traits avaibles to use in your classes:

- [HasAttributes](src/HasAttributes.php)
- [HasContaineCollection](src/HasContainerCollection.php)
> Methods available: `containerAttributes()`, `containerClass()`, `containerTag()`.
- [HasContent](src/HasContent.php)
- [HasLabelCollection](src/HasLabelCollection.php)
> Methods available: `disabledLabel`, `label`, `labelAttributes()`, `labelClass()`, `labelFor()`.
- [HasPrefixCollection](src/HasPrefixCollection.php)
> Methods available: `prefix()`, `prefixAttributes()`, `prefixClass()`, `prefixTag()`.
- [HasSeparator](src/HasSeparator.php)
- [HasSuffixCollection](src/HasSuffixCollection.php)
> Methods available: `suffix()`, `suffixAttributes()`, `suffixClass()`, `suffixTag()`.
- [HasTag](src/HasTag.php)
- [HasTagName](src/HasTagName.php)
- [HasTemplate](src/HasTemplate.php)
- [HasUncheckedCollection](src/HasUncheckedCollection.php)
> Methods available: `uncheckedAttributes()`, `uncheckedClass()`, `uncheckedValue()`.

## Testing

[Check the documentation testing](docs/testing.md) to learn about testing.

## Support versions

[![PHP81](https://img.shields.io/badge/PHP-%3E%3D8.1-787CB5)](https://www.php.net/releases/8.1/en.php)

## License

The MIT License (MIT). Please see [License File](LICENSE) for more information.

## Our social networks

[![Twitter](https://img.shields.io/badge/twitter-follow-1DA1F2?logo=twitter&logoColor=1DA1F2&labelColor=555555?style=flat)](https://twitter.com/Terabytesoftw)