dev-master
9999999-devA PHP library for creating and processing HTML forms
The Requires
The Development Requires
A PHP library for creating and processing HTML forms
Yet another PHP library for creating and processing HTML forms (WIP)., (*1)
It is intended for quick, configuration driven creation of contact forms that are sent by email. It is not intended for creating editing forms for database records., (*2)
Forms can either be defined by YAML configuration files (or by associative PHP arrays or any other format that can be turned into a PHP array) or programmatically using a fluent interface., (*3)
Forms are rendered either in a customizable generic way or by replacing the form elements in an HTML template containing the whole form., (*4)
Forms are processed using FormProcessors. Currently there is only a FormProcessor that sends the form by email using SwiftMailer but you can easily add your own form processor., (*5)
Form elements are created using DOM and are returned as DOM objects. This way, Formlib does not depend on a particular templating system but it is possible to alter the form and its elements after creation by manipulation the DOM, e.g. by adding and altering attributes., (*6)
symfony/yaml, (*7)
SwiftMailer, (*8)
HtmlPageDom for DOM manipulation which in turn builds upon Symfony's DomCrawler component, (*9)
Formlib is registered on packagist.org so it can be installed using composer:, (*10)
require: "wa72/formlib": "dev-master", (*11)
See the "examples" directory., (*12)
A PHP library for creating and processing HTML forms