2017 © Pedro Peláez
 

library formlib

A PHP library for creating and processing HTML forms

image

wa72/formlib

A PHP library for creating and processing HTML forms

  • Thursday, May 24, 2018
  • by wasinger
  • Repository
  • 1 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

FORMLIB

Yet another PHP library for creating and processing HTML forms (WIP)., (*1)

How it's different?

  • 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)

Dependencies

Installation

Formlib is registered on packagist.org so it can be installed using composer:, (*10)

require: "wa72/formlib": "dev-master", (*11)

Usage

See the "examples" directory., (*12)

The Versions

24/05 2018

dev-master

9999999-dev

A PHP library for creating and processing HTML forms

  Sources   Download

The Requires

 

The Development Requires