dcodegroup / form-builder
Simple package which dcode uses to manage form builder
4.0.0
2025-06-20 09:26 UTC
Requires
- php: ^8.2 || ^8.3
- laravel/framework: ^11.0||^12.0
Requires (Dev)
- larastan/larastan: *
- laravel/pint: ^1.0
- orchestra/testbench: ^9.0
This package is auto-updated.
Last update: 2026-06-22 10:13:22 UTC
README
This package provides the standard scaffolding of form builder functionality used in most projects.
Installation
PHP
You can install the package via composer:
| Version / Branch | Laravel Support | Install Command |
|---|---|---|
| 1.x | <= v10 | composer require dcodegroup/form-builder:^1.0 |
| 2.x | >= v11 | composer require dcodegroup/form-builder:^2.0 |
| 3.x | >= v11 | composer require dcodegroup/form-builder:^3.0 |
Then run the installation command.
php artisan form-builder:install
This will publish the configuration file and the migration file.
Run the migrations
php artisan migrate
Traits for form validation
Located in
src\Http\Traits\FormValidator.php
Development
To build the assets, run this command
npm run build
Tailwind CSS
The project uses Tailwind CSS v3 with v4-compatible syntax. This means:
- All CSS utilities and Vue components are compatible with both Tailwind v3 and v4
- Opacity syntax uses the modern slash notation:
ring-sky-200/50instead ofring-opacity-50 - When upgrading to Tailwind v4 in the future, no CSS or component changes will be needed
Custom Theme Extensions:
brandcolor palette (25, 50, 100, ..., 950) for brand stylingsuccess,error,warningcolor utilities- Custom
fillwidth utility for responsive layouts
Note: The /example directory remains on Tailwind v3 for backwards compatibility.
Example
Check example folder to see how to use the package.
/example