Download the PHP package hyderkamran/laravel-form-builder without Composer
On this page you can find all versions of the php package hyderkamran/laravel-form-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hyderkamran/laravel-form-builder
More information about hyderkamran/laravel-form-builder
Files in hyderkamran/laravel-form-builder
Package laravel-form-builder
Short Description A production-ready, dynamic form builder package for Laravel — drag-and-drop admin UI, 21 field types, conditional logic, file uploads, repeater fields, submissions export, and API support.
License MIT
Homepage https://github.com/hyderkamran/laravel-form-builder
Informations about the package laravel-form-builder
Laravel Form Builder
A dynamic, database-driven form builder for Laravel. Inspired by Typeform, Google Forms, and WPForms — built for developers.
Features
| Feature | Status |
|---|---|
| 21 field types (text → repeater) | ✅ |
| Drag-and-drop admin UI | ✅ |
| Database-driven form definitions | ✅ |
| Dynamic validation (per-field rules) | ✅ |
| Conditional field logic (show/hide) | ✅ |
| File & image upload support | ✅ |
| Repeater fields (nested rows) | ✅ |
| Form submissions with export (CSV/Excel/PDF) | ✅ |
| Email notifications on submission | ✅ |
| Webhook support | ✅ |
| API endpoints (JSON) | ✅ |
Embeddable <iframe> mode |
✅ |
Blade directive @form('slug') |
✅ |
| Caching layer | ✅ |
| PSR-4, Laravel package conventions | ✅ |
Requirements
- PHP
^8.1 - Laravel
^10.0 | ^11.0
Installation
The service provider and FormBuilder facade are auto-discovered by Laravel.
Publish & Migrate
Configuration
config/form-builder.php:
You can also use .env variables:
Usage
Creating a Form (Programmatic)
Rendering in Blade
Embedding via <iframe>
Field Types
| Group | Types |
|---|---|
| Basic | text, email, number, textarea, password, hidden, url, tel |
| Choice | select, radio, checkbox, toggle |
| Date & Time | date, datetime, time |
| Media | file, image |
| Special | range, color, rating |
| Pro | repeater |
Access via enum:
Conditional Logic
Show or hide a field based on another field's value. Set via options['logic']:
This is also configurable in the drag-and-drop admin UI under the Logic tab.
Repeater Fields
A repeater allows nested, dynamic row-based data:
Exporting Submissions
Or hit the admin export routes directly:
API Endpoints
Submit example (cURL):
Notifications & Webhooks
Configure per-form in the admin panel Settings tab or via Form::settings:
HasForms Trait
Admin UI
Visit /forms/admin in your browser.
| Page | URL |
|---|---|
| Dashboard | /forms/admin |
| Create Form | /forms/admin/create |
| Edit Form | /forms/admin/{id}/edit |
| Submissions | /forms/admin/{id}/submissions |
To protect the admin with auth, set
admin_middleware→['web', 'auth']in your config.
Testing
The test suite covers:
- Form & field model creation
- Submission validation (required, email, custom rules)
- File upload handling
- Form rendering output
- CSV export response headers
- Admin CRUD endpoints
- FieldType enum
Package Structure
Contributing
Pull requests are welcome. Please open an issue first to discuss what you would like to change.
License
MIT License — see LICENSE for details.
Built for the Laravel community.
All versions of laravel-form-builder with dependencies
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/database Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/routing Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/view Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/validation Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/http Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/mail Version ^8.0|^9.0|^10.0|^11.0|^12.0
phpoffice/phpspreadsheet Version ^1.15|^2.0
dompdf/dompdf Version ^1.0|^2.0|^3.0