Download the PHP package pinkcrab/form-components without Composer
On this page you can find all versions of the php package pinkcrab/form-components. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pinkcrab/form-components
More information about pinkcrab/form-components
Files in pinkcrab/form-components
Download pinkcrab/form-components
More information about pinkcrab/form-components
Files in pinkcrab/form-components
Vendor pinkcrab
Package form-components
Short Description Collection of View Components for the Perique framework. Is used to render form fields.
License MIT
Homepage https://pinkcrab.co.uk
Package form-components
Short Description Collection of View Components for the Perique framework. Is used to render form fields.
License MIT
Homepage https://pinkcrab.co.uk
Please rate this library. Is it a good library?
Informations about the package form-components
Perique - Form Components
A collection of View Components for rendering form fields in the Perique Framework. Build forms with a fluent PHP API, automatic HTML rendering, built-in sanitization and validation.
Setup
Register the module in your Perique bootstrap:
Quick Start
Render fields in any Perique view template:
Or use the Make helper for a more concise syntax:
Building a Complete Form
Generated HTML
Field Types
Text Inputs
| Field | Class | Make Helper | Docs |
|---|---|---|---|
| Text | Input\Text |
Make::text() |
View |
Input\Email |
Make::email() |
View | |
| Password | Input\Password |
Make::password() |
View |
| Search | Input\Search |
Make::search() |
View |
| Tel | Input\Tel |
Make::tel() |
View |
| URL | Input\Url |
Make::url() |
View |
Numeric Inputs
| Field | Class | Make Helper | Docs |
|---|---|---|---|
| Number | Input\Number |
Make::number() |
View |
| Range | Input\Range |
Make::range() |
View |
Date & Time Inputs
| Field | Class | Make Helper | Docs |
|---|---|---|---|
| Date | Input\Date |
Make::date() |
View |
| Time | Input\Time |
Make::time() |
View |
| Datetime | Input\Datetime |
Make::datetime() |
View |
| Month | Input\Month |
Make::month() |
View |
| Week | Input\Week |
Make::week() |
View |
Special Inputs
| Field | Class | Make Helper | Docs |
|---|---|---|---|
| Color | Input\Color |
Make::color() |
View |
| File | Input\File |
Make::file() |
View |
| Hidden | Input\Hidden |
Make::hidden() |
View |
| Checkbox | Input\Checkbox |
Make::checkbox() |
View |
| Radio | Input\Radio |
Make::radio() |
View |
Selection Groups
| Field | Class | Make Helper | Docs |
|---|---|---|---|
| Select | Field\Select |
Make::select() |
View |
| Checkbox Group | Group\Checkbox_Group |
Make::checkbox_group() |
View |
| Radio Group | Group\Radio_Group |
Make::radio_group() |
View |
Other Elements
| Element | Class | Make Helper | Docs |
|---|---|---|---|
| Textarea | Field\Textarea |
Make::textarea() |
View |
| Button | Element\Button |
Make::button() |
View |
| Form | Element\Form |
Make::form() |
View |
| Fieldset | Element\Fieldset |
Make::fieldset() |
View |
| Custom Field | Element\Custom_Field |
Make::custom() |
View |
Change Log
- 2.1.5 - Field templates no longer pass a
nullbefore_field/after_fieldtowp_kses_post()whenbefore()/after()weren't called — the strict empty-string check introduced in 2.1.4 didn't account for the unset (null) case, which triggered apreg_replace(): Passing nulldeprecation on PHP 8.1+. Fixed by checking for both null and empty string. (Issue #25) - 2.1.4 - Field names containing PHP-style brackets (e.g.
wm_loc_coordinates[0][latlong]) and case-sensitive characters are now preserved verbatim rather than being mangled bysanitize_title().before()/after()adornments now render whethershow_wrapper(false)orshow_wrapper(true)is set — they were previously dropped when the wrapper was off. (Issue #23) *2.1.3 - Adds description pre and post fields within the field wrapper. - 2.1.2 - Fixed label/input accessibility, wrapper class duplication and unnecessary
listattribute rendering. - 2.1.1 - Added Custom_Field element for rendering arbitrary HTML with full field treatment (wrapper, label, notifications, configurable kses filtering)
- 2.1.0 - Initial release for Perique 2.1.*
All versions of form-components with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0.0
pinkcrab/perique-framework-core Version 2.1.*
pinkcrab/function-constructors Version 0.2.*
pinkcrab/perique-framework-core Version 2.1.*
pinkcrab/function-constructors Version 0.2.*
The package pinkcrab/form-components contains the following files
Loading the files please wait ...
