Download the PHP package zhanang19/form-component without Composer
On this page you can find all versions of the php package zhanang19/form-component. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zhanang19/form-component
More information about zhanang19/form-component
Files in zhanang19/form-component
Package form-component
Short Description This package will provide a form component as Laravel Component.
License MIT
Homepage https://github.com/zhanang19/form-component
Informations about the package form-component
Laravel 7 Form Component
This is a packages that provides form component supporting modern CSS Framework. This work was inspired from nafiesl/FormField
Installation
Install this package through Composer by running command composer require zhanang19/form-component
Configuration
- This package come with 2 form theme from Bootstrap and Bulma
- You must publish config by running
php artisan vendor:publish --provider="Zhanang19\FormComponent\FormComponentServiceProvider" --tag=config
to setup form theme - You can optionally publish views by running
php artisan vendor:publish --provider="Zhanang19\FormComponent\FormComponentServiceProvider" --tag=config
. This is useful when you want to add your own theme or customize default theme
Usage
-
Basic usage Type this on your blade view:
Will generate:
-
Advanced usage
This package automatically merge attributes into form input tag. We also provide some useful slot here. Check Laravel Component Section for more usage.
Todo
- [x] Add configuration
- [ ] Add unit test (see #1)
- [ ] Add form horizontal layouts in Bulma theme
- [ ] Add form group layouts in Bootstrap theme
Credits
- Zainal Hasan
- Meyta Tan
- All Contributors
Support
License
The MIT License (MIT). Please see License File for more information.