prabowosd / laravel-collective-html
Laravel 11-13 compatible fork of LaravelCollective/html. Namespaces kept as original for compatibility. HTML and Form Builders for the Laravel Framework
Package info
github.com/prabowosd/laravel-collective-html
pkg:composer/prabowosd/laravel-collective-html
Requires
- php: ^8.2
- illuminate/http: ^10.0|^11.0|^12.0|^13.0
- illuminate/routing: ^10.0|^11.0|^12.0|^13.0
- illuminate/session: ^10.0|^11.0|^12.0|^13.0
- illuminate/support: ^10.0|^11.0|^12.0|^13.0
- illuminate/view: ^10.0|^11.0|^12.0|^13.0
Requires (Dev)
- illuminate/database: ^10.0|^11.0|^12.0|^13.0
- mockery/mockery: ^1.6
- phpunit/phpunit: ^10.0|^11.0
README
This is a fork of the original LaravelCollective/html package, updated to support Laravel 11, 12, and 13 and PHP 8.2+ (including PHP 8.4).
The namespaces have been kept as Collective\Html to maintain compatibility with existing projects that use the original package.
Installation
You can install this package via composer:
composer require prabowosd/laravel-collective-html
Documentation
For full documentation, please refer to the original Laravel Collective website: https://laravelcollective.com/docs/6.x/html
Quick Start
Form Open
{!! Form::open(['url' => 'foo/bar']) !!}
//
{!! Form::close() !!}
Label
{!! Form::label('email', 'E-Mail Address') !!}
Text, Text Area, Password & Hidden Fields
{!! Form::text('username') !!}
{!! Form::textarea('description') !!}
{!! Form::password('password') !!}
{!! Form::hidden('invisible', 'secret') !!}
Checkboxes and Radio Buttons
{!! Form::checkbox('name', 'value') !!}
{!! Form::radio('name', 'value') !!}
Drop-Down Lists
{!! Form::select('size', ['L' => 'Large', 'S' => 'Small']) !!}
Buttons
{!! Form::submit('Click Me!') !!}
License
The Laravel Collective HTML package is open-sourced software licensed under the MIT license.