Download the PHP package fab/formule without Composer

On this page you can find all versions of the php package fab/formule. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package formule

Formule for TYPO3 CMS

Template based, render a variety of forms such as contact form, registration form, etc... effortless!

Consider these minimum steps to display a form and start submitting data:

Compatibility and Maintenance

This package is currently maintained for the following versions:

TYPO3 Version Package Version Branch Maintained
TYPO3 11.5.x 4.x master Yes
TYPO3 10.4.x 3.x - No
TYPO3 8.x 2.x - No
TYPO3 7.x 1.x - No

Project info and releases

Development version: https://github.com/Ecodev/formule

News about latest development are also announced on http://twitter.com/fudriot

Installation and requirement

Download the extension as normal in the Extension Manager or via Composer:

Install the extension in the Extension Manager. You are almost there! Create a Content Element of type "formule" in General Plugin > Variety of forms and configure at your convenience.

Configuration

The plugin can be configured mainly in TypoScript. In the Extension Manager possible email redirection can be set according to the Application Context. This maybe useful when developing to avoid sending email to the final user.

Register a new template

By default the extension provides a limited set of forms: a basic mail form along with a newsletter registration example. It is very likely you want to add new ones. To register a new template and see it in the plugin record, consider the two necessary steps:

Load additional assets

Below is a more complex example which will load additional JS / CSS. This TypoScript could be written placed in a file, e.g. in EXT:foo/Configuration/TypoScript/Plugin/tx_formule.ts

Persist to the database

One can also set a configuration to persist submitted data into the database. This TypoScript could be written placed in a file, e.g. in EXT:foo/Configuration/TypoScript/Plugin/tx_formule.ts

Loading data

To pre-load data and inject values in the form, one can configure loaders. A Loader corresponds to a PHP class where one can fetch some data and return an array of values.

Finishers

Finisher actions let you finalize the submit of your form and do whatever action is necessary. Your own finisher class must implement FinisherInterface.

HTML template

The template has the bare minimum requirements. A Fluid form must be declared sending its content to action "submit". It is has one required field to retrieve the original Content element configuration <f:form.hidden name="values" value="{contentElement.uid}"/>. Formule has a mechanism to read and analyse the content. From that, it will extract allowed fields and mandatory values. Notice the basic structure with the inline comments.

Sections in template

The template can be

This section is optional and is to define the body part of the email to the admin. If present if will replace the value from the flexform.

Same as above but for the end user. If present if will replace the value from the flexform.

This section is optional and is to define the feedback message for the end user after successfully submitting the form.

Template variable

For convenience sake, the extension provides a bunch of global variables than can be used across emails (subject or body part):

Fields control


All versions of formule with dependencies

PHP Build Version
Package Version
Requires typo3/cms-core Version ^11.5
michelf/php-markdown Version ^1.9
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fab/formule contains the following files

Loading the files please wait ....