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

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

Stepped Form for Laravel & Lumen

PHPUnit, PHPCS, PHPStan Tests

The package is based on the HTTP Stepped Form and built for Laravel & Lumen frameworks.

Table of Contents

  1. Requirements
  2. Installation
  3. Configuration
    • Publish the config
    • Available config options
  4. Usage
  5. License

Requirements

PHP: >=8.1

Laravel: ^9.0 || ^10.0

Installation

Via Composer

Additional changes for Lumen framework

Add the following snippet to the bootstrap/app.php file under the providers section as follows:

(back to top)

Configuration

Publish the config

Run the following command to publish the package config file:

Available config options

The configuration file config/stepped-form.php has the following options:

  1. renderer - contains Renderer class, instance or service alias that will translate step's template definition to the response. Must implement RendererInterface;
  2. redirector - contains Redirector class, instance or service alias that will redirect user between different steps. Must implement RedirectorInterface;
  3. entity_copy - contains Entity Copy class, instance or service alias that will clone entity of the given step. Must implement EntityCopyInterface;
  4. event_dispatcher - contains Event Dispatcher class, instance or service alias that will dispatch form events. Must implement EventDispatcherInterface;
  5. exception_normalizers - contains exception normalizers that the form will use to normalize SteppedFormException into the Response instance. Read more about them in the HTTP Stepped Form docs;
  6. forms - contains array of all application forms definitions. Form definition must have builder class for dynamic forms or array of steps for the static forms, settings class and storage where the form will store data.
(back to top)

Usage

  1. Publish configuration file.
  2. Replace with custom implementation of redirector, renderer and entity copy if necessary. Add custom exception normalizers if necessary.
  3. Declare your form settings.

  4. Add forms definitions.

    • Static form

    • Dynamic form
  5. Use Stepped Form in you controller. Stepped Form will have service alias as "stepped-form." + form key form configuration.

    ServiceProvider.php

    CustomerController.php

See configuration file for more information.

(back to top)

License

Laravel & Lumen Stepped Form is licensed under the MIT License. See LICENSE for the full license text.


All versions of laravel-stepped-form with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
illuminate/contracts Version ^10.0 || ^11.0 || ^12.0
illuminate/routing Version ^10.0 || ^11.0 || ^12.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0
lexal/http-stepped-form Version ^3.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 lexal/laravel-stepped-form contains the following files

Loading the files please wait ....