Download the PHP package dmb/particles without Composer
On this page you can find all versions of the php package dmb/particles. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dmb/particles
More information about dmb/particles
Files in dmb/particles
Package particles
Short Description A package that provides blade components, compatible with Laravel 6 and earlier, to compose forms in a more structured and easy way.
License MIT
Homepage https://github.com/davidemariabusi/particles
Informations about the package particles
Particles - compose your form
A package that provides blade components, compatible with Laravel 6 and earlier, to compose forms in a more structured and easy way.
Installation
You can install the package via composer:
Usage
Using Particles is pretty straightforward. Each component renders the html markup and takes advantage of the convenience and modularity of the parameters which, in some cases, have default values that can be overridden.
All components are based on bootstrap 4
The components available are:
- checkbox
- datepicker - based on Datepicker for Bootstrap v1.9.0
- input
- label
- multiple - based on Selec2
- radio
- select
- textarea - ckeditor option based on CkEditor
- tooltip - dependecy FancyBox
Supported parameters are
- label: string
- tooltip: array <name,content>
- id: int
- type: string default: text|radio|checkbox
- class: string default: form-control|form-control date-picker|form-control multiple-select
- name: string
- value: string
- style: string inline style default: width: 100%;|null
- readonly: ?bool default null
- required: ?bool default null - if true, an asterisk is placed next to the label
- disabled: ?bool default null
- datas: array <[key,value]> dynamically render data-attributes
Specific parameters for the textarea component are
- ckeditor: ?bool default null - if true, activate the ckeditor plugin
- rows: int default 3
Specific parameters for the select component are
- disableText: string default __('Select an option')
Specific parameters for the multiple component are
- multiple: ?bool default mutiple="multiple"
- dataPlaceholder: ?string default __('Select an option')
- dataAllowClear: ?bool default true
- dataTags: ?bool
Specific parameters for the radio and checkbox component are
- styleText: string default margin-left:5px
The select, multiple and the textarea components can use the slot to place the relative code between the opening and closing of the component itself
Some examples
The complete documentation with all the parameters, the functionalities and the will be published soon.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.