Download the PHP package lexal/symfony-stepped-form without Composer

On this page you can find all versions of the php package lexal/symfony-stepped-form. 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 symfony-stepped-form

Symfony Stepped Form

PHPUnit, PHPCS, PHPStan Tests

The package is based on the HTTP Stepped Form and built for a Symfony framework.

Table of Contents

  1. Requirements
  2. Installation
  3. Configuration
  4. Usage
  5. License

Requirements

Installation

Via Composer

Configuration

Register the bundle in config/bundles.php if not using Symfony Flex, and create config/packages/stepped_form.yaml for configuration options (renderer, redirector, event_dispatcher, exception_normalizers, and forms).

Example (manual bundles.php registration):

Example:

Where:

  1. renderer - contains Renderer class or service alias that translates step's template definition into the response. Must implement Lexal\HttpSteppedForm\Renderer\RendererInterface;
  2. redirector - contains Redirector class or service alias that redirects user between form steps. Must implement Lexal\HttpSteppedForm\Routing\RedirectorInterface;
  3. event_dispatcher - contains Event Dispatcher class or service alias that dispatches form events. Must implement Lexal\SteppedForm\EventDispatcher\EventDispatcherInterface;
  4. forms - contains form definitions. Key is the form name. Form is available in the Symfony container as stepped_form.form.<form_name>. When only one form registered, it is available via interface Lexal\SteppedForm\SteppedFormInterface. Form definition contains:
    • form_builder (required when steps is not provided) - contains FormBuilder class or service alias that builds form (only when it has dynamic steps). Must implement Lexal\SteppedForm\FormBuilder\FormBuilderInterface;
    • steps _(required when form_builder is not provided)_ - contains an array of step class or service aliases that implements Lexal\SteppedForm\Step\StepInterface (only when it has static steps);
    • form_settings - contains FormSettings class or service alias that provides form settings. Must implement Lexal\SteppedForm\FormSettings\FormSettingsInterface;
    • storage - contains Storage class or service alias that provides form storage. Must implement Lexal\SteppedForm\Storage\StorageInterface;
    • session_key_storage (optional) - class or service id to use for storing a per-user session key that identifies which form session the current user is working with. Default: Lexal\\SteppedForm\\Form\\Storage\\NullSessionKeyStorage (no per-user session key). Provide an implementation (for example, a session-backed storage) when you need to isolate multiple concurrent form sessions per user or to resume a specific form session. Must implement Lexal\SteppedForm\Storage\SessionKeyStorageInterface;

Usage

  1. Configure your form settings.

  2. Declare form definitions in YAML or XML (deprecated since Symfony 7.4).
  3. Inject and use the form in your controller. Form is available in the Symfony container as stepped_form.form.<form_name>.

    CustomerController.php

License

Symfony Stepped Form is licensed under the MIT License. See LICENSE for the full license text.


All versions of symfony-stepped-form with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
lexal/http-stepped-form Version ^4.0
symfony/config Version ^6.4 || ^7.4 || ^8.0
symfony/dependency-injection Version ^6.4 || ^7.4 || ^8.0
symfony/event-dispatcher-contracts Version ^3.7
symfony/http-foundation Version ^6.4.41 || ^7.4.13 || ^8.0.13
symfony/http-kernel Version ^6.4 || ^7.4.12 || ^8.0.12
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 lexal/symfony-stepped-form contains the following files

Loading the files please wait ...