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-field

UI Awesome Field for PHP.
https://github.com/ui-awesome/html-field

List: html-field

html-field php ui-awesome

Last synced: about 2 months ago
JSON representation

UI Awesome Field for PHP.

Awesome Lists containing this project

README

        





UI Awesome Field for PHP.





PHPUnit


Codecov


Infection


Psalm


Psalm Coverage


Style ci

This library provides a way to generate `HTML` code for various types of form fields, including `text`, `text area`,
`selection`, `checkbox`, `radio`, and all input types.

```php
input(
CheckboxList::widget()
->items(
Checkbox::widget()->label('Apple')->value(1),
Checkbox::widget()->label('Banana')->value(2),
Checkbox::widget()->label('Orange')->value(3),
)
)
->render()
```

## 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-field:^0.1
```

or add

```json
"ui-awesome/html-field": "^0.1"
```

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

## Usage

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

## 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.md) 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)