| Install | |
|---|---|
composer require skywalker-labs/formcraft |
|
| Latest Version: | v1.1.0 |
| PHP: | ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0 |
╔═══════════════════════════════════════════════════════════════╗
║ ║
║ ███████╗ ██████╗ ██████╗ ███╗ ███╗ ██████╗██████╗ █████╗ ║
║ ██╔════╝██╔═══██╗██╔══██╗████╗ ████║██╔════╝██╔══██╗██╔══██╗║
║ █████╗ ██║ ██║██████╔╝██╔████╔██║██║ ██████╔╝███████║║
║ ██╔══╝ ██║ ██║██╔══██╗██║╚██╔╝██║██║ ██╔══██╗██╔══██║║
║ ██║ ╚██████╔╝██║ ██║██║ ╚═╝ ██║╚██████╗██║ ██║██║ ██║║
║ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝║
║ ║
║ HTML & Form Builder for Laravel ║
║ 🎨 50+ Components | 🚀 Modern | ♿ Accessible ║
║ ║
╚═══════════════════════════════════════════════════════════════╝
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.
composer require skywalker-labs/formcraft
Publish configuration:
php artisan vendor:publish --tag=html-config
{!! Form::open(['url' => 'users/store']) !!}
{!! Form::text('name') !!}
{!! Form::email('email') !!}
{!! Form::submit('Save') !!}
{!! Form::close() !!}
{!! Form::model($user, ['route' => ['users.update', $user]]) !!}
{!! Form::text('name') !!}
{!! Form::email('email') !!}
{!! Form::submit('Update') !!}
{!! Form::close() !!}
<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" />
{!! Form::rules('required|email|max:255')->text('email') !!}
{!! Form::rules('required|min:8')->password('password') !!}
// 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]) !!}
{!! Form::wire('email')->text('email') !!}
{!! Form::wireLive('search', 300)->text('search') !!}
{!! Form::wireClick('save')->submit('Save') !!}
{!! Html::alert('Success!', 'success') !!}
{!! Html::progressBar(75, ['striped' => true]) !!}
{!! Html::badge('New', 'primary') !!}
{!! Html::tabs(['Tab 1' => 'Content 1', 'Tab 2' => 'Content 2']) !!}
Complete documentation available in the repository:
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
Contributions are welcome! Please feel free to submit a Pull Request.
The Laravel HTML package is open-sourced software licensed under the MIT license.