2017 © Pedro Peláez
 

project normform-skeleton

An example application or skeleton for the for getting started with NormForm.

image

fhooe/normform-skeleton

An example application or skeleton for the for getting started with NormForm.

  • Thursday, April 26, 2018
  • by hochleitner
  • Repository
  • 2 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

NormForm-Skeleton

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)

Creating a NormForm Application

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)

Basic Usage

  • Edit templates/normFormDemo.html.twig to modify the HTML (add/remove form fields, etc.).
  • Modify src/NormFormDemo.php to 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.
  • Adapt htdocs/index.php whenever if you have edited your form. Supply PostParameter instances to the View object 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 htdocs/index_simple.php and templates/normFormDemoSimple.html.twig instead., (*4)

Browsing the Application

For taking a quick look you can use the PHP built-in web server:, (*5)

cd path/to/install
composer start

Navigate to http://localhost:8888/index.php or http://localhost:8888/index_simple.php in your browser to see the application in action., (*6)

Contributing

If you'd like to contribute, please refer to CONTRIBUTING for details., (*7)

License

NormForm is licensed under the MIT license. See LICENSE for more information., (*8)

More Information

The Versions

26/04 2018

dev-master

9999999-dev

An example application or skeleton for the for getting started with NormForm.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Wolfgang Hochleitner
by Martin Harrer

example education form processing

12/04 2018

v1.0.0

1.0.0.0

An example application or skeleton for the for getting started with NormForm.

  Sources   Download

MIT

The Requires

 

by Wolfgang Hochleitner
by Martin Harrer

example education form processing