An example application or skeleton for the for getting started with NormForm.
An example application or skeleton for the for getting started with NormForm, the simple template application for PHP form processing developed for PHP classes in the program Media Technology and Design at the University of Applied Sciences Upper Austria. This skeleton and the library behind it are primarily designed for educational purposes (learning object oriented PHP, form processing and templating languages). Use it for "public" applications at your own risk., (*1)
Use Composer to create a new project containing the skeleton files:, (*2)
composer create-project fhooe/normform-skeleton path/to/install
Composer will create a project in the specified
path/to/install directory., (*3)
templates/normFormDemo.html.twigto modify the HTML (add/remove form fields, etc.).
src/NormFormDemo.phpto change the form validation behavior (method
isValid()) and the business logic that is executed one the form is filled out correctly (method
business())). Create constants with the names of your form fields here for easier referencing.
htdocs/index.phpwhenever if you have edited your form. Supply
PostParameterinstances to the
Viewobject so that the form data can be processed and displayed accordingly.
If you prefer your form without all the (SUIT CSS inspired) CSS, start working with
templates/normFormDemoSimple.html.twig instead., (*4)
For taking a quick look you can use the PHP built-in web server:, (*5)
cd path/to/install composer start
If you'd like to contribute, please refer to CONTRIBUTING for details., (*7)
NormForm is licensed under the MIT license. See LICENSE for more information., (*8)