Download the PHP package berlioz/form without Composer
On this page you can find all versions of the php package berlioz/form. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor berlioz
Package form
Short Description Berlioz Form
License MIT
Homepage https://getberlioz.com
Package form
Short Description Berlioz Form
License MIT
Homepage https://getberlioz.com
Please rate this library. Is it a good library?
Informations about the package form
Berlioz Form
Berlioz Form is a PHP library to manage your forms.
Installation
Composer
You can install Berlioz Form with Composer, it's the recommended installation.
Dependencies
- PHP ^8.0
- Packages:
- berlioz/helpers
- psr/http-message
Description
3 types of elements exists in Berlioz Form:
AbstractType
: it's a form controlGroup
: represents an object in OOPCollection
: represents a collection of AbstractType or Group
Input types available:
Button
Checkbox
Choice
Date
DateTime
Email
File
Hidden
Month
Number
Password
Range
Reset
Search
Submit
Tel
Text
TextArea
Time
Url
Week
Usage
Form creation
Constructor of Form
object accept 3 parameters:
- Name of form
- Mapped object
- Array of options
Example:
Declare form control
add
method accept 3 parameters:
- Name of control (must be the same that the mapped element)
- Type (class name or object)
- Array of options
Options are different between controls.
Example:
Handle
Berlioz Form implements PSR-7 (HTTP message interfaces). You must give the server request to the handle
method.
Group
Example for an postal address:
Collection
Example for a list of addresses:
All versions of form with dependencies
PHP Build Version
Package Version
The package berlioz/form contains the following files
Loading the files please wait ....