| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
composer require nitroxy/php-forms
Form::from_object($user, function($f){
$f->text_field('name', 'Name');
$f->text_field('age', 'Age', ['type' => 'number', 'min' => 1]);
$f->select(FormSelect::from_array($f, 'role', array('', 'Manager', 'Frobnicator', 'Developer'), 'Role'));
$f->textarea('description', 'Description');
}, ['action' => $user->url, 'method' => 'patch']);See documentation for examples and usage.
| Back | FazBrowse Home | New Git URL |