Download the PHP package asmitta-01/formflow-bundle without Composer

On this page you can find all versions of the php package asmitta-01/formflow-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 formflow-bundle

MultiStepFormFlowBundle

This is a fork of the package craue/CraueFormFlowBundle version 3.7.0. You can check it to know all the features of this package. In this fork i focus on the usage and installation on Symfony 7.

:warning: Note: This fork doesn't support a Symfony version prior to 6.0.

Installation

Follow this guide for the installation.

Usage

This section shows how to create a 3-step form flow for a user. The package provides 03 approaches but i will focus on one: One form type for the entire flow. This approach makes it easy to turn an existing (common) form into a form flow. We will use this FormType:

1. Create a flow class

2. Update the form type class

There is an option called flow_step you can use to decide which fields will be added to the form according to the step to render.

3. Register your flow as a service

4. Setup your controller

4. Create a form template(view)

You only need one template for a flow. The instance of your flow class is passed to the template in a variable called flow so you can use it to render the form according to the current step.

Buttons

You can customize the default button look by using these variables to add one or more CSS classes to them:

Example with Bootstrap button classes:

In the same way you can customize the button labels:

Example:

You can also remove the reset button by setting asmitta_formflow_button_render_reset to false.

The buttons are displayed in a div with the class _asmitta_formflowbuttons. You can override its rules in your CSS file.

Handle Unmapped Fields

If you have unmapped fields in your form, you can handle them at the end of the form fill. In our previous example, assuming the first_name is unmapped we'll need to handle it ourself.

Symfony UX Turbo

Working with Symfony Turbo the flow in the view might not work correctly. You should disable it on that view or send a specific code with the controller.


All versions of formflow-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
symfony/framework-bundle Version ^6.0 || ^7.0
symfony/config Version ^6.0 || ^7.0
symfony/dependency-injection Version ^6.0 || ^7.0
symfony/event-dispatcher Version ^6.0 || ^7.0
symfony/form Version ^6.0 || ^7.0
symfony/http-foundation Version ^6.0 || ^7.0
symfony/http-kernel Version ^6.0 || ^7.0
symfony/options-resolver Version ^6.0 || ^7.0
symfony/security-core Version ^6.0 || ^7.0
symfony/translation Version ^6.0 || ^7.0
symfony/validator Version ^6.0 || ^7.0
symfony/yaml Version ^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 asmitta-01/formflow-bundle contains the following files

Loading the files please wait ....