Download the PHP package muhammadmahedihasan/laravel-dynamic-forms without Composer

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

Laravel Dynamic Forms

A highly decoupled, event-driven, layout-agnostic dynamic form builder package for Laravel and Vue 3.

Form Builder Interface

Form Preview Interface


Features


Installation

1. Require the Package via Composer

2. Run Database Migrations

Run Laravel's migration command to create the package tables (form_inputs, dynamic_forms, form_elements, form_responses, form_response_items):

3. Run the Install Command

The install command will publish the package configuration, publish the Vue builder assets into your host application (resources/js/vendor/dynamic-forms), inject the vuedraggable peer dependency, and seed the default Form Inputs catalog into your database:

(Optional) If you ever need to manually seed or re-seed the default Form Inputs catalog, you can run:

4. Rebuild Your Assets

Compile the published frontend assets using your asset pipeline (e.g., Vite):


Vue 3 Integration Example

Since the form builder is fully decoupled, you should wrap it inside a page component in your host application. This allows you to wrap the form builder in your main layout, control the button loading states, perform API requests, and show custom toast notifications (e.g., using PrimeVue Toast).

Here is a complete, real-world wrapper component example (resources/js/pages/YourComponent.vue):


Component API

Props

Prop Type Required Description
slug string No Pass a slug to put the builder in Edit Mode and load an existing form structure. Omit/leave blank to put in Create Mode.
apiPrefix string No API prefix namespace for configuration and inputs (default: /api/v1/df).

Events


Custom UI Components (Provide/Inject)

Both the form renderer (RenderForm.vue) and the form builder preview support layout-agnostic component overrides. You can inject your own UI components using Vue 3's provide API:

If these are not provided, the package will automatically fallback to standard fallback HTML components.


Custom Styling

Tailwind CSS Colors Configuration

The package elements use Tailwind classes that reference a primary color palette. To ensure the elements render with correct branding colors, configure your host application's tailwind.config.js to define the primary colors:

Namespace Styling overrides


License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-dynamic-forms with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/validation Version ^11.0|^12.0|^13.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 muhammadmahedihasan/laravel-dynamic-forms contains the following files

Loading the files please wait ...