skywalker-labs / formcraft
Modern HTML & Form Builder for Laravel with 50+ components, theme support (Bootstrap/Tailwind), Livewire integration, and accessibility features
Fund package maintenance!
ermradulsharma
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/skywalker-labs/formcraft
Requires
- php: ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
- ermradulsharma/laravel-toolkit: ^1.0|^2.0
- illuminate/contracts: ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
- illuminate/http: ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
- illuminate/routing: ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
- illuminate/session: ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
- illuminate/support: ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
- illuminate/view: ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
Requires (Dev)
- illuminate/database: ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
- mockery/mockery: ^1.0
- phpunit/phpunit: ^9.3|^10.0|^11.0
README
╔═══════════════════════════════════════════════════════════════╗
║ ║
║ ███████╗ ██████╗ ██████╗ ███╗ ███╗ ██████╗██████╗ █████╗ ║
║ ██╔════╝██╔═══██╗██╔══██╗████╗ ████║██╔════╝██╔══██╗██╔══██╗║
║ █████╗ ██║ ██║██████╔╝██╔████╔██║██║ ██████╔╝███████║║
║ ██╔══╝ ██║ ██║██╔══██╗██║╚██╔╝██║██║ ██╔══██╗██╔══██║║
║ ██║ ╚██████╔╝██║ ██║██║ ╚═╝ ██║╚██████╗██║ ██║██║ ██║║
║ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝║
║ ║
║ HTML & Form Builder for Laravel ║
║ 🎨 50+ Components | 🚀 Modern | ♿ Accessible ║
║ ║
╚═══════════════════════════════════════════════════════════════╝
FormCraft - Laravel HTML & Form Builder
A comprehensive HTML and Form Builder for Laravel with 50+ modern features, strict PHP 8.2+ typing, and built-in support for Bootstrap & Tailwind CSS.
✨ Features
- 🎨 Theme Support - Bootstrap & Tailwind CSS
- 🔄 Livewire Compatible - Built-in wire:model helpers
- ♿ Accessibility Ready - Automatic ARIA attributes
- 📱 Responsive - Mobile-first design
- 🚀 50+ Components - Forms, UI elements, utilities
- 🎯 Zero Dependencies - No external JavaScript required
📦 Installation
composer require skywalker-labs/formcraft
Publish configuration:
php artisan vendor:publish --tag=html-config
🚀 Quick Start
Basic Form
{!! Form::open(['url' => 'users/store']) !!}
{!! Form::text('name') !!}
{!! Form::email('email') !!}
{!! Form::submit('Save') !!}
{!! Form::close() !!}
Model Binding
{!! Form::model($user, ['route' => ['users.update', $user]]) !!}
{!! Form::text('name') !!}
{!! Form::email('email') !!}
{!! Form::submit('Update') !!}
{!! Form::close() !!}
Blade Components
<x-form-input name="email" label="Email" /> <x-form-select name="country" :options="$countries" /> <x-form-textarea name="bio" rows="5" /> <x-form-checkbox name="agree" label="I agree" />
📚 Key Features
HTML5 Validation Rules
{!! Form::rules('required|email|max:255')->text('email') !!}
{!! Form::rules('required|min:8')->password('password') !!}
Smart Components
// Toggle switch {!! Form::toggle('notifications', 1, true, ['label' => 'Enable']) !!} // Color picker {!! Form::colorPicker('theme_color', '#3490dc') !!} // Searchable select {!! Form::searchableSelect('country', $countries) !!} // Date picker {!! Form::datePicker('birthday') !!} // File upload with preview {!! Form::fileUpload('avatar', ['preview' => true]) !!}
Livewire Integration
{!! Form::wire('email')->text('email') !!}
{!! Form::wireLive('search', 300)->text('search') !!}
{!! Form::wireClick('save')->submit('Save') !!}
UI Components
{!! Html::alert('Success!', 'success') !!}
{!! Html::progressBar(75, ['striped' => true]) !!}
{!! Html::badge('New', 'primary') !!}
{!! Html::tabs(['Tab 1' => 'Content 1', 'Tab 2' => 'Content 2']) !!}
📖 Documentation
Complete documentation available in the repository:
🎯 Feature List
Phase 1-4: Core features, utilities, UI components, Livewire
Phase 5: Validation rules, toggles, color pickers, ratings
Phase 6: Searchable/multi/AJAX selects, autocomplete
Phase 7: Date/time pickers, file uploads
Phase 8: Rich text editor, inline editing, form wizards
Phase 9: Progress bars, badges, tabs, accordion, tooltips
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
The Laravel HTML package is open-sourced software licensed under the MIT license.