||2 years ago|
|CsrfException.php||2 years ago|
|FileUpload.php||2 years ago|
|Form.php||2 years ago|
|FormField.php||2 years ago|
|HiddenFormField.php||2 years ago|
|README.md||2 years ago|
|SecretFormField.php||2 years ago|
|SelectField.php||2 years ago|
|StaticFormField.php||2 years ago|
|UploadException.php||2 years ago|
|test.php||2 years ago|
Some code to formalize parsing POST data and generating HTML forms. This is made as an attempt to de-duplicate code around generating forms with pre-existing data filled in.
There is no templating included, the final step for HTML generation must be done by the parent application.
An example parent application is given in
Due to a lack of useful documentation,
test.php is also the reference implementation.
Testing is done by clicking around in
- session_start() needs to be called from the parent application
- openssl is required for CRSF token generation
- class autoloading needs to be done from parent application
How to use it
Include it via git checkout or submodule into the class autoload directories, under
There is no packaging for compose etc, this is mostly meant for conventional php applications.