enjoys / forms
forms 5.x dev
Installs: 2 225
Dependents: 6
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
- ext-json: *
- enjoys/functions: ^2.1
- enjoys/session: ^2.0
- gabrielelana/byte-units: 0.5.0
- httpsoft/http-server-request: ^1.0
- webmozart/assert: ^1.10
Requires (Dev)
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.6
- symfony/var-dumper: ^v6.0
- vimeo/psalm: ^5.0
- dev-master
- 6.x-dev
- 5.10.1
- 5.10.0
- 5.9.3
- 5.9.2
- 5.9.1
- 5.9.0
- 5.8.0
- 5.7.0
- 5.6.1
- 5.6.0
- 5.5.5
- 5.5.4
- 5.5.3
- 5.5.2
- 5.5.1
- 5.5.0
- 5.5.0-rc4
- 5.5.0-rc3
- 5.5.0-rc2
- 5.5.0-rc1
- 5.4.x-dev
- 5.4.2
- 5.4.1
- 5.4.1-rc3
- 5.4.1-rc2
- 5.4.1-rc1
- 5.4.1-beta3
- 5.4.1-beta2
- 5.4.1-beta
- 5.4.0
- 5.3.0
- 5.2.5
- 5.2.4
- 5.2.3
- 5.2.2
- 5.2.1
- 5.2.0
- 5.1.2
- 5.1.1
- 5.1.0
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 3.x-dev
- 3.7.0
- 3.6.6
- 3.6.5
- 3.6.4
- 3.6.3
- 3.6.2
- 3.6.1
- 3.6.0
- 3.5.1
- 3.5.0
- 3.4.5
- 3.4.4
- 3.4.3.1
- 3.4.3
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.4
- 3.3.3
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.1
- 3.1.0
- 3.0.2
- 3.0.1
- 3.0.0
- 2.6.0
- 2.5.1
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.0
- dev-added_elements_after_and_before
This package is auto-updated.
Last update: 2024-11-02 20:51:06 UTC
README
Init form
use Enjoys\Forms\Form; $form = new Form(); //or $form = new Form('get', 'action.php');
Added Elements
use Enjoys\Forms\Form; use Enjoys\Forms\Elements; $form = new Form(); $form->text('name', 'label'); //or $textElement = new Elements\Text('name', 'label'); $form->addElement($textElement);
List Elements
- button
- captcha (need CaptchaInterface Implement)
- checkbox
- color
- datalist
- date
- datetime
- datetimelocal
- file
- group
- header
- hidden
- html
- image
- month
- number
- password
- radio
- range
- reset
- search
- select
- submit
- tel
- text
- textarea
- time
- url
- week
Run built-in server for view example
port=$(shuf -i 2048-65000 -n 1); php -S localhost:"${port}" -t ./example .route