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

On this page you can find all versions of the php package bayareawebpro/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 Forms

https://packagist.org/packages/bayareawebpro/laravel-multistep-forms

Multistep Form Builder is a "responsable" class that can be returned from controllers.

Installation

Example Usage


Make New Instance

Make a new instance of the builder class with optional view and data array. You should always set the namespace for the form session to avoid conflicts with other parts of your application that use the session store.


Configure Steps

Define the rules, messages and data for the step. Data will be merged with any view data defined in the make method and be included in the JsonResponse.

** Use a Closure to lazy load data per-key.

Use an array:

Or use an invokable class (recommended)


BeforeStep / OnStep Hooks

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

Handle UploadedFiles

Specify a callback used to transform UploadedFiles into paths.

Reset / Clear Form

JSON Response Schema

The response returned will have two properties:

Public Helper Methods

stepConfig

Get the current step configuration (default), or pass an integer for a specific step:

getValue

Get a field value (session / old input) or fallback:

setValue

Set a field value and store in the session:

save

Merge and save key/values array directly to the session (does not fire beforeSaveCallback):

reset

Reset the form state to defaults passing an optional array of data to seed.

withData

Add additional non-form data to all views and responses:

currentStep

Get the current saved step number:

requestedStep

Get the incoming client-requested step number:

isStep

Is the current step the provided step:

prevStepUrl

Get the previous step url.

lastStep

Get the last step number:

isLastStep

Is the current step the last step:

isPast,isActive,isFuture


Blade Example

Data will be injected into the view as well as the form itself allowing you to access the form values and other helper methods.

Vue Example

Form state and data will be returned as JSON when no view is specified or the request prefers JSON. You can combine both techniques to use Vue within blade as well.

Example Form Component

Example Input Component

Example Select Component


All versions of laravel-multistep-forms with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/http Version ^11.0
illuminate/support Version ^11.0
illuminate/session Version ^11.0
illuminate/contracts Version ^11.0
illuminate/validation Version ^11.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 bayareawebpro/laravel-multistep-forms contains the following files

Loading the files please wait ....