2017 © Pedro Peláez
 

typo3-cms-extension formz

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

image

romm/formz

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  • Friday, July 27, 2018
  • by Romm
  • Repository
  • 7 Watchers
  • 11 Stars
  • 4,426 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 7 Forks
  • 8 Open issues
  • 31 Versions
  • 20 % Grown

The README.md

FormZ FormZ • Modern form handler

Build Status Coverage Status Scrutinizer Code Quality Latest Stable Version Total Downloads SensioLabs Insight StyleCI, (*1)

FormZ official website, (*2)

“Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations!”, (*3)

:heavy_exclamation_mark: This PHP library has been developed for TYPO3TYPO3 CMS and is intended to TYPO3 extension developers., (*4)

Slack Join the discussion on Slack in channel #ext-formz! – You don't have access to TYPO3 Slack? Get your Slack invitation by clicking here!, (*5)


Introduction

Forms are common elements in the conception of a website, as they allow a direct interaction between the user and the application. Technically, setting up a form can quickly become complex and require a lot of time: many aspects must be considered: style, display conditions, validation, security…, (*6)

This is why FormZ was born: to facilitate the set up and the maintenance of a form, by providing tools that are simple and fast to use, but also powerful and flexible enough to fulfill every need., (*7)

FormZ helps with the following topics:, (*8)

  • HTML – tools are provided for Fluid, to facilitate integration., (*9)

  • Validation – with a TypoScript based configuration, every field's validation rule is easy to set up and maintain., (*10)

  • Style – an advanced “data attributes” system allows FormZ to fulfill almost all possible display needs., (*11)

  • UX – a whole JavaScript API is provided to make the user experience as fast and as pleasant as possible., (*12)

  • Code generation – FormZ can generate JavaScript and CSS, which are then injected into the page and will automatize a huge part of the client-sided behaviours., (*13)

Example

Nothing can be more interesting than a little example to understand how it works., (*14)

:arrow_right: You can download an extension which provides a form example here: https://github.com/romm/formz_example/, (*15)


Live example:, (*16)

FormZ, (*17)


TypoScript configuration:, (*18)

config.tx_formz {
    forms {
        Romm\FormzExample\Form\ExampleForm {
            fields {
                name {
                    validation {
                        required < config.tx_formz.validators.required
                    }
                }

                firstName {
                    validation {
                        required < config.tx_formz.validators.required
                    }
                }

                email {
                    validation {
                        required < config.tx_formz.validators.required
                        isEmail < config.tx_formz.validators.email
                    }
                    behaviours {
                        toLowerCase < config.tx_formz.behaviours.toLowerCase
                    }
                }

                gender {
                    validation {
                        required < config.tx_formz.validators.required

                        isValid < config.tx_formz.validators.containsValues
                        isValid {
                            options {
                                values {
                                    10 = male
                                    20 = female
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

PHP form model:, (*19)

<?php
namespace Romm\FormzExample\Form;

use Romm\Formz\Form\FormInterface;
use Romm\Formz\Form\FormTrait;

class ExampleForm implements FormInterface
{

    use FormTrait;

    /**
     * @var string
     */
    protected $email;

    /**
     * @var string
     */
    protected $name;

    /**
     * @var string
     */
    protected $firstName;

    /**
     * @var string
     */
    protected $gender;

    // Setters and getters...
}

Fluid template:, (*20)

<fz:form action="submitForm" name="exampleForm">
    <div class="row">
        <div class="col-md-6 form-group">
            <fz:field name="firstName" layout="bootstrap3">
                <fz:option name="label" value="First name" />
                <fz:option name="required" value="1" />

                <fz:slot name="Field">
                    <f:form.textfield class="{inputClass}" property="{fieldName}" id="{fieldId}" placeholder="First name" />
                </fz:slot>
            </fz:field>
        </div>

        <div class="col-md-6 form-group">
            <fz:field name="name" layout="bootstrap3">
                <fz:option name="label" value="Name" />
                <fz:option name="required" value="1" />

                <fz:slot name="Field">
                    <f:form.textfield class="{inputClass}" property="{fieldName}" id="{fieldId}" placeholder="Name" />
                </fz:slot>
            </fz:field>
        </div>
    </div>

    <div class="row">
        <div class="col-md-6 form-group">
            <fz:field name="email" layout="bootstrap3">
                <fz:option name="label" value="Email" />
                <fz:option name="required" value="1" />

                <fz:slot name="Field">
                    <f:form.textfield class="{inputClass}" property="{fieldName}" id="{fieldId}" placeholder="Email" />
                </fz:slot>
            </fz:field>
        </div>

        <div class="col-md-6 form-group">
            <fz:field name="gender" layout="bootstrap3">
                <fz:option name="label" value="Gender" />
                <fz:option name="required" value="1" />

                <fz:slot name="Field">
                    <label for="{fieldId}-female">Female</label>
                    <f:form.radio property="{fieldName}" id="{fieldId}-female" value="female" />

                    <label for="{fieldId}-male">Male</label>
                    <f:form.radio property="{fieldName}" id="{fieldId}-male" value="male" />
                </fz:slot>
            </fz:field>
        </div>
    </div>

    <f:form.submit value="Send" class="btn btn-primary" />
</fz:form>

The Versions

27/07 2018

dev-wip/steps

dev-wip/steps http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

23/07 2018

dev-development

dev-development http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+ GPL-3.0-or-later

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

22/11 2017

dev-feature/middleware

dev-feature/middleware http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

21/11 2017

dev-wip/steps-tmp

dev-wip/steps-tmp http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

09/11 2017

dev-task/required-validator-bool-false

dev-task/required-validator-bool-false http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

25/10 2017

dev-bugfix/version-2/format-data-attributes

dev-bugfix/version-2/format-data-attributes http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

25/10 2017

dev-bugfix/viewhelper-parent-arguments

dev-bugfix/viewhelper-parent-arguments http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

25/10 2017

dev-bugfix/view-bugs-v8

dev-bugfix/view-bugs-v8 http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

29/09 2017

dev-bugfix/field-layout-v8

dev-bugfix/field-layout-v8 http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

05/09 2017

dev-tmp

dev-tmp http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

28/08 2017

dev-feature/version-2

dev-feature/version-2 http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

25/08 2017

dev-task/move-form-validation-namespace

dev-task/move-form-validation-namespace http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

25/08 2017

dev-task/move-field-validation-namespace

dev-task/move-field-validation-namespace http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

05/08 2017

dev-feature/version-2-remove-validation-data

dev-feature/version-2-remove-validation-data http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

25/07 2017

dev-master

9999999-dev http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

25/07 2017

1.2.0

1.2.0.0 http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

13/06 2017

1.0.0.x-dev

1.0.0.9999999-dev http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

12/06 2017

1.1.1

1.1.1.0 http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

29/05 2017

dev-middleware-wip

dev-middleware-wip http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

08/04 2017

1.1.0

1.1.0.0 http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

30/03 2017

dev-task/hash-handling

dev-task/hash-handling http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

23/03 2017

1.0.0

1.0.0.0 http://typo3-formz.com/

Manage your forms easily with powerful tools: TypoScript based validation, Fluid view helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build nice-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use FormZ, it will live up to your expectations! Visit typo3-formz.com for more information.

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

15/02 2017

0.4.1-beta

0.4.1.0-beta

Handle forms very easily with provided tools: TypoScript based validation, Fluid helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build good-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use Formz, it will fulfill your needs!

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

15/02 2017

0.4.0-beta

0.4.0.0-beta

Handle forms very easily with provided tools: TypoScript based validation, Fluid helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build good-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use Formz, it will fulfill your needs!

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

25/01 2017

0.3.3-beta

0.3.3.0-beta

Handle forms very easily with provided tools: TypoScript based validation, Fluid helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build good-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use Formz, it will fulfill your needs!

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

24/01 2017

0.3.2-beta

0.3.2.0-beta

Handle forms very easily with provided tools: TypoScript based validation, Fluid helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build good-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use Formz, it will fulfill your needs!

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

05/01 2017

0.3.1-beta

0.3.1.0-beta

Handle forms very easily with provided tools: TypoScript based validation, Fluid helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build good-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use Formz, it will fulfill your needs!

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

10/12 2016

0.3.0-beta

0.3.0.0-beta

Handle forms very easily with provided tools: TypoScript based validation, Fluid helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build good-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use Formz, it will fulfill your needs!

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

10/11 2016

0.2.0-beta

0.2.0.0-beta

Handle forms very easily with provided tools: TypoScript based validation, Fluid helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build good-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use Formz, it will fulfill your needs!

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

10/10 2016

0.1.1-beta

0.1.1.0-beta

Handle forms very easily with provided tools: TypoScript based validation, Fluid helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build good-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use Formz, it will fulfill your needs!

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Romain Canon

typo3 forms flexibility

02/10 2016

0.1.0-beta

0.1.0.0-beta

Handle forms very easily with provided tools: TypoScript based validation, Fluid helpers, a whole JavaScript API, and more. Use pre-defined layouts for Twitter Bootstrap and Foundation to build good-looking forms in minutes. Need to build a basic form with only two fields? Need to build a huge registration form with dozens of fields? Use Formz, it will fulfill your needs!

  Sources   Download

GPL-3.0+

The Requires

 

by Romain Canon

typo3 forms flexibility