Download the PHP package evista/perform without Composer
On this page you can find all versions of the php package evista/perform. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download evista/perform
More information about evista/perform
Files in evista/perform
Package perform
Short Description A reverse Form API that builds and processes forms automatically - from markup.
License MIT
Homepage https://github.com/evista/perform
Informations about the package perform
Perform
A reverse Form API that builds and processes forms automatically - from markup.
Install
Via Composer
Usage
Perform is based on a simple concept: build your form in plain ol' html in any template or any frontend like React.js then send it to the server. The backend will take care of building a form object from your markup, populate it from the request, and run your validations.
This differentiates it from all the other PHP form APIs, because there's no need to build any form object on the server side before submission.
Here is an example of a server side form building process:
After initializing the form builder call transpileForm()
to build a Form object from the markup. The there's some helpful class methods to do whatever you have to, for example getField($name)
to get any field's value.
The markup arrives with the submitted datas in the 'serform' post parameter. For example, this markup:
There's a javascript file in assets/bundle.js
that sends the form's data via POST to the form's destination (action parameter) via a global object called Perform.
There is a usage example of the package in this repo.
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Balint Sera
- Zsolt Schutzbach
- All Contributors
- Evista Creative Agency
License
The MIT License (MIT). Please see License File for more information.
All versions of perform with dependencies
symfony/dom-crawler Version ^3.0
symfony/css-selector Version ^3.0
doctrine/collections Version ^1.3