Download the PHP package erag/inertia-forms without Composer

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

# Laravel Inertia Forms **Build forms in Laravel using PHP and render them in Vue, React, or Svelte with a single `
` component.** Define your fields, layout, and validation rules in Laravel. The package handles rendering and validation, so you don't have to build and maintain the same form logic separately on the frontend. Whether you're creating a simple contact form or a multi-step wizard, Laravel Inertia Forms helps you build forms with less repetitive code. [Documentation](https://erag.in/laravel-inertia-forms/) ยท [Live Demo](https://erag.in/laravel-inertia-forms/demo.html) ยท [Demo Apps](#demo-apps) ยท [Sponsor](https://github.com/sponsors/eramitgupta)

Why Laravel Inertia Forms?

Building forms with Laravel and a JavaScript frontend often means managing the same information in multiple places.

You define the fields in your frontend components, write validation rules in Laravel, handle errors, and keep everything in sync whenever something changes.

Laravel Inertia Forms takes a different approach.

You define your form in PHP, and the package takes care of rendering it in Vue, React, or Svelte. Your validation rules stay in Laravel, and the frontend handles displaying fields, errors, and user interactions.

This makes forms easier to build, update, and maintain, especially as your application grows.

Features


Installation

First, install the Laravel package using Composer:

Run the installation command:

Next, install the frontend package for the framework you're using.

Vue

React

Svelte

You only need the frontend package for your chosen framework.

For setup instructions and usage examples, check the official documentation.


How It Works

Laravel Inertia Forms connects your Laravel form definitions with frontend components.

The general workflow is simple:

  1. Define your form in Laravel. Add the fields, validation rules, layout, and submission details in PHP.
  2. Render it on the frontend. Use the <Form> component in Vue, React, or Svelte.
  3. Handle user input. The frontend takes care of displaying the fields and handling interactions.
  4. Validate with Laravel. Validation rules defined in your form are used when processing the request.
  5. Display validation errors. The form can show errors returned from Laravel without manually rebuilding the validation logic.

You can also use the same form definition for editing existing records, conditional fields, and multi-step workflows.

The idea is to keep your form logic in one place while letting your frontend framework handle the user interface.


Built for Different Types of Forms

Not every form is a simple collection of text inputs.

Some forms need searchable dropdowns, file uploads, repeated groups of fields, or multiple steps.

Laravel Inertia Forms supports these use cases without requiring you to write a completely separate form system.

Conditional Fields

Use visibleWhen() and hiddenWhen() to control which fields appear based on the values entered by the user.

These conditions also affect validation, so hidden fields don't have to be handled separately.

Multi-Step Forms

Break longer forms into smaller steps using the built-in wizard support.

Each step can be validated on the server before moving forward.

Model Binding

When editing existing data, use ->bind($user) to populate the form from your model.

This allows you to reuse form definitions instead of maintaining separate structures for creating and editing records.

Custom Fields

If the built-in fields don't cover your requirements, you can create custom field types and their frontend components.

This lets you extend the package while keeping the same form-building approach.


Documentation

The documentation covers installation, form definitions, validation, conditional fields, authorization, layouts, custom components, and more.

Read the Official Documentation โ†’

You can also explore the Live Demo to see the available fields and form features in action.


Demo Apps

Want to see how Laravel Inertia Forms works in a real application?

I've created separate demo applications for Vue, React, and Svelte using Laravel 13 and Inertia 3.

Each demo includes 15 real-world forms with CRUD operations, search, file uploads, custom fields, and Pest tests.

You can clone a demo project, explore the implementation, and see how forms are organized in an actual Laravel application.

Framework Repository
โš›๏ธ React Laravel Inertia Forms โ€” React Demo
๐Ÿ’š Vue Laravel Inertia Forms โ€” Vue Demo
๐Ÿงก Svelte Laravel Inertia Forms โ€” Svelte Demo

Support

If Laravel Inertia Forms is useful in your project, consider giving the repository a star.

It helps other Laravel developers discover the package and supports its continued development.

โญ Star Laravel Inertia Forms on GitHub


Sponsorship

Laravel Inertia Forms is free and open source.

I maintain the package and work on improving its features, documentation, and developer experience.

If the package saves you time or makes your development workflow easier, you can support the project through GitHub Sponsors.

๐Ÿ’– Sponsor on GitHub

Your support helps me continue maintaining and improving this project for the Laravel community.


All versions of inertia-forms with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/auth Version ^13.0
illuminate/console Version ^13.0
illuminate/contracts Version ^13.0
illuminate/database Version ^13.0
illuminate/http Version ^13.0
illuminate/routing Version ^13.0
illuminate/support Version ^13.0
illuminate/validation Version ^13.0
inertiajs/inertia-laravel 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 erag/inertia-forms contains the following files

Loading the files please wait ...