Download the PHP package abdallahmohammed/laravel-multistep-forms without Composer

On this page you can find all versions of the php package abdallahmohammed/laravel-multistep-forms. 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-multistep-forms

Laravel Multistep Form

Build Status

Installation

Example Usage

Steps Usage

Before Step

Define a callback to fired before a step has been validated.

Return a response from this hook to return early before validation occurs.

before($step, Closure $closure)

$step could be Step instance, or the number of the step.

After Step

Define a callback to fired after a step has been validated. Step Number or * for all.

Return a response from this hook to return early before the form step is incremented.

after($step, Closure $closure)

$step could be Step instance, or the number of the step.

Dynamic Step

You can set a step as dynamic, so the step will take it's rules, messages and attributes from the request.

For example

From the example we have defined the attributes without the rules, so we must send the rules with the request. Here it is the example of the request body.

1.rules is a reference to first step rules.

You can change 1 to the number of the dynamic step.

As the previous example you can send 1.messages and 1.attributes in the request body.

Helper Methods

stepConfig(?int $step = null)

Get the current step config, or a specific step config.

getValue(string $key, $fallback = null)

Get a field value from the form state (session / old input) or fallback to a default.

setValue(string $key, $value)

Set a field value from the session form state.

currentStep()

Get the current saved step number.

requestedStep()

Get the requested step number.

isStep(int $step = 1)

Get the current step number.

isLastStep()

Determine if the current step the last step.

isPast(int $step, $truthy = true, $falsy = false)

Determine if the specified step is in the past.

isActive(int $step, $truthy = true, $falsy = false)

Determine if the specified step is active.

isNext(int $step, $truthy = true, $falsy = false)

Determine if the specified step is in the next.

toCollection

Get the array representation of the form state as a collection.

toArray

Get the array representation of the form state.


All versions of laravel-multistep-forms with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
illuminate/http Version ^6.0|^7.0|^8.0
illuminate/support Version ^6.0|^7.0|^8.0
illuminate/session Version ^6.0|^7.0|^8.0
illuminate/contracts Version ^6.0|^7.0|^8.0
illuminate/validation Version ^6.0|^7.0|^8.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 abdallahmohammed/laravel-multistep-forms contains the following files

Loading the files please wait ....