Download the PHP package solidworx/form-handler-bundle without Composer

On this page you can find all versions of the php package solidworx/form-handler-bundle. 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 form-handler-bundle

FormHandlerBundle

Build Status

The FormHandler component attempts to make controllers with basic form handlers cleaner by off-loading form handling to separate classes.

Table of Contents

Requirements

FormHandler requires PHP 7.1+ and Symfony 3.0+

Installation

Composer

Then register the bundle in your Symfony application:

Usage

A form can have a class that implements the FormHandlerInterface interface. This interface exposes a single method in which the form can be retrieved:

This method can either return a standard form type, or use the factory to generate a form type.

The benefit of using the factory, is when you need to pass additional information or options to the form, E.G

To register your form handler, register it as a service:

Inside your controller, use the form.handler service to handle your form:

This will process the necessary logic on the form (submit the form and handle the request etc).

If you need to handle a failed form, you need to implement the FormHandlerFailInterface interface:

If you need to handle a successful form submission, implement the FormHandlerSuccessInterface interface:

Adding options to a form

If you need to pass options to a form, you can add it as an array to the second argument of FormHandler::handle:

The options will then be available in the getForm method as a Options object:

You can also configure the options to set what options is allowed, set default values, define required options etc. by implementing the FormHandlerOptionsResolver interface:

Advanced Usage

That is the very basics of the component. There are more advanced usages where you can customize the handling of a form to your specific needs.

Testing

To run the unit tests, execute the following command

Contributing

See CONTRIBUTING

License

FormHandler is open-sourced software licensed under the MIT license

Please see the LICENSE file for the full license.


All versions of form-handler-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
symfony/framework-bundle Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/form Version ^4.0 || ^5.0 || ^6.0 || ^7.0
symfony/event-dispatcher Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/http-foundation Version ^4.4 || ^5.0 || ^6.0 || ^7.0
symfony/options-resolver Version ^4.4 || ^5.0 || ^6.0 || ^7.0
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 solidworx/form-handler-bundle contains the following files

Loading the files please wait ....