ui-awesome / html-field
HTML Awesome Field for PHP.
dev-main / 1.0.x-dev
2024-03-31 14:16 UTC
Requires
- php: ^8.1
- ext-mbstring: *
- php-forge/awesome-widget: ^0.1
- php-forge/helpers: ^0.1
- ui-awesome/form-model: ^0.1
- ui-awesome/html: ^0.2
- ui-awesome/html-attribute: ^0.1
- ui-awesome/html-concern: ^0.1
- ui-awesome/html-helper: ^0.1
- ui-awesome/html-interop: ^0.1
Requires (Dev)
- maglnet/composer-require-checker: ^4.7
- php-forge/support: ^0.1
- phpunit/phpunit: ^10.5
- roave/infection-static-analysis-plugin: ^1.34
- symplify/easy-coding-standard: ^12.0
- vimeo/psalm: ^5.22
This package is auto-updated.
Last update: 2024-12-09 17:32:18 UTC
README
UI Awesome Field for PHP.
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 declare(strict_types=1); use App\Model\BasicForm; echo Field::widget(new BasicForm(), 'fruits') ->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.
Either run
composer require --prefer-dist ui-awesome/html-field:^0.1
or add
"ui-awesome/html-field": "^0.1"
to the require section of your composer.json
file.
Usage
Check the documentation docs to learn about usage.
Testing
Check the documentation testing to learn about testing.
Support versions
License
The MIT License (MIT). Please see License File for more information.