Download the PHP package tomjamon/laravel-custom-html without Composer
On this page you can find all versions of the php package tomjamon/laravel-custom-html. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-custom-html
Laravel Custom HTML
Based on HTML and Form Builders from Laravelcollective
This library offer :
- 14 publishable components
- 2 themes (TailwindCSS and Bootstrap).
- A new component "control()" allow you to have an input, his label and his error message within a parent block, in one call.
The easiest way to install this library is to simply replace LC/HTML by this tool.
Installation
Simply launch this command from the root folder of your project :
Customize components
If you want to use a theme, or custom your views :
Publish vendor views : php artisan vendor:publish
Choose : Provider: TomJamon\Html\HtmlServiceProvider
A new folder resources/views/vendor/customhtml
will be created with every components.
You can now change every components classes and stuff.
Themes
If you want to use a theme you can customize it in config/customhtml.php
FYI : Creating a TailwindCSS theme is the opposite of what Tailwind is made for. Please custom the theme, the theme is just giving a little help, an example of each component.
Components list
- button
- checkbox
- close
- control
- datalist
- form
- input
- label
- link
- optgroup
- option
- select
- submit
- textarea
- file
No Auto-discovery
Since Laravel 5.5, Taylor Otwell have instored a auto-discovery system. You do not longer need to put providers & alisase in app.php, but if you haven't auto-discovery enable :
Edit your config/app.php
and add thoses lines :
providers
aliases
Examples
Project with login & register in Laravel Custom HTML
https://github.com/TiDJ/laravel-custom-html-example
Cmd : Composer install && npm run prod && php artisan serve
Pro Tip : Just change config/customhtml.php
and to a php artisan optimize
Simple text input
Select
Textarea with an overrided rows number (Second array arguments)
Input File
With the control call, generating for you a label and parent block
Or you can directly insert the input file :
And don't forget the 'files' => true in the Form::model() or Form::open()
Why use : Clarity and simplicity
Here is how a form can look like
Login form
All versions of laravel-custom-html with dependencies
illuminate/http Version ^8.0|^9.0
illuminate/routing Version ^8.0|^9.0
illuminate/session Version ^8.0|^9.0
illuminate/support Version ^8.0|^9.0
illuminate/view Version ^8.0|^9.0