Download the PHP package glynnforrest/reform without Composer
On this page you can find all versions of the php package glynnforrest/reform. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download glynnforrest/reform
More information about glynnforrest/reform
Files in glynnforrest/reform
Package reform
Short Description Create forms that render and validate with ease.
License MIT
Informations about the package reform
Reform
Reform makes it easy to create forms in PHP. Create a form, add rows
and validation, then call render()
. Everything else is done
automatically - checking for submissions, validating data, setting
values, creating labels and error messages, handling CSRF...
For greater control, the form can be rendered row-by-row, or even in individual pieces. You can use only a few features without the rest getting in the way.
Features
- Many row types and validation rules. It is trivial to add custom types to match your requirements.
- Different renderers to apply styles to the form (e.g. Bootstrap). Changing the renderer can be done with a single line of code.
- Integration with Symfony HttpFoundation to automatically submit forms.
- Security measures like honeypot fields, timers, and CSRF protection. Add the Blockade security library to have these exceptions handled automatically.
- Events to customize how forms behave.
Quickstart
A simple form with a username and password field.
Now with some validation.
Submit the form automatically by using a Symfony Request object. If the correct HTTP method was used and all fields have passed the required validation, the form is considered valid.
Valid or not, after a submission the fields are populated with the submitted data.
See docs/
for further documentation.
Installation
Install using composer:
Viewing the examples
Then visit localhost:8000
in your web browser.
These instructions assume you have composer, bower and PHP 5.4 installed.
License
MIT, see LICENSE for details.
Copyright 2014 Glynn Forrest