PHPackages                             tomjamon/laravel-custom-html - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. tomjamon/laravel-custom-html

ActiveLibrary[Templating &amp; Views](/categories/templating)

tomjamon/laravel-custom-html
============================

Custom HTML generator for Laravel (Based on LaravelCollective HTML)

v9.0.0(2y ago)1018.6k1[1 issues](https://github.com/tomjamon/laravel-custom-html/issues)MITPHPPHP &gt;=7.2.5CI failing

Since Feb 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tomjamon/laravel-custom-html)[ Packagist](https://packagist.org/packages/tomjamon/laravel-custom-html)[ RSS](/packages/tomjamon-laravel-custom-html/feed)WikiDiscussions 8.x Synced 5d ago

READMEChangelogDependencies (8)Versions (14)Used By (0)

[![Laravel Custom Html](laravel-custom-html.png)](laravel-custom-html.png)

[![Total Downloads](https://camo.githubusercontent.com/bfe17986ce9b63e27680828a97fe83b5e11f421558cb675fd7ea432a7f11dcef/68747470733a2f2f706f7365722e707567782e6f72672f746f6d6a616d6f6e2f6c61726176656c2d637573746f6d2d68746d6c2f646f776e6c6f616473)](https://packagist.org/packages/tomjamon/laravel-custom-html)[![Latest Stable Version](https://camo.githubusercontent.com/a0115811d3de778a7719a5a54b164b3da2f40914c22ef9a96d2acf5c94e652a8/68747470733a2f2f706f7365722e707567782e6f72672f746f6d6a616d6f6e2f6c61726176656c2d637573746f6d2d68746d6c2f762f737461626c652e737667)](https://packagist.org/packages/tomjamon/laravel-custom-html)[![Latest Unstable Version](https://camo.githubusercontent.com/ed529cbddda3dcaa7b157745dd435ff793b0d825dc138681f9e048b95505f6cd/68747470733a2f2f706f7365722e707567782e6f72672f746f6d6a616d6f6e2f6c61726176656c2d637573746f6d2d68746d6c2f762f756e737461626c652e737667)](https://packagist.org/packages/tomjamon/laravel-custom-html)[![License](https://camo.githubusercontent.com/c27635d4f6c894da3db117efedf66a142d4f9768c3bb93b9416f7ae002b84f0f/68747470733a2f2f706f7365722e707567782e6f72672f746f6d6a616d6f6e2f6c61726176656c2d637573746f6d2d68746d6c2f6c6963656e73652e737667)](https://packagist.org/packages/tomjamon/laravel-custom-html)

Laravel Custom HTML
-------------------

[](#laravel-custom-html)

Based on [HTML and Form Builders](https://github.com/LaravelCollective/html "Github Project LaravelCollective/html")from [Laravelcollective](https://laravelcollective.com/ "Laravel Collective's Homepage")

This library offer :

- 14 publishable components
- 2 themes ([TailwindCSS](http://tailwindcss.com/ "Tailwind's Homepage") and [Bootstrap](https://getbootstrap.com/ "Boostrap's Homepage")).
- 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
------------

[](#installation)

Simply launch this command from the root folder of your project :

```
composer require tomjamon/laravel-custom-html
```

### Customize components

[](#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

[](#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

[](#components-list)

- button
- checkbox
- close
- control
- datalist
- form
- input
- label
- link
- optgroup
- option
- select
- submit
- textarea
- file

No Auto-discovery
-----------------

[](#no-auto-discovery)

Since Laravel 5.5, Taylor Otwell have instored a auto-discovery system. You do not longer need to put providers &amp; alisase in app.php, but if you haven't auto-discovery enable :

Edit your `config/app.php` and add thoses lines :

##### providers

[](#providers)

```
TomJamon\Html\HtmlServiceProvider::class,
```

##### aliases

[](#aliases)

```
'Form' => TomJamon\Html\FormFacade::class,
'Html' => TomJamon\Html\HtmlFacade::class,
```

Examples
--------

[](#examples)

#### Project with login &amp; register in Laravel Custom HTML

[](#project-with-login--register-in-laravel-custom-html)

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

[](#simple-text-input)

```
{!! Form::control('text', 'name', $errors, [
    'label' => 'Nom Prenom',
    'placeholder' => 'John Doe',
    'md' => '1/2'
]) !!}
```

---

[![Input Medium](tl-inputmd.png)](tl-inputmd.png)

---

#### Select

[](#select)

```
{!! Form::control('select', 'type', $errors, [
    'label' => 'Type',
    'message' => 'Choose wisely the type of object',
    'data' => [
        'one' => 'First choice',
        'two' => 'Second choice',
        'three' => 'Third choice'
    ]
]) !!}
```

#### Textarea with an overrided rows number (Second array arguments)

[](#textarea-with-an-overrided-rows-number-second-array-arguments)

```
{!! Form::control('textarea', 'content', $errors, [
    'label' => 'Content',
    'placeholder' => 'Post content',
], [
    'rows' => '25'
]) !!}
```

#### Input File

[](#input-file)

With the control call, generating for you a label and parent block

```
{!! Form::control('file', 'thumbnail', $errors, [
    'label' => 'Your thumbnail',
]) !!}
```

Or you can directly insert the input file :

```
{!! Form::file('thumbnail')  !!}
```

And don't forget the 'files' =&gt; true in the Form::model() or Form::open()

Why use : Clarity and simplicity
--------------------------------

[](#why-use--clarity-and-simplicity)

Here is how a form can look like

#### Login form

[](#login-form)

```
{!! Form::open(['route' => 'login']) !!}
    {!! Form::control('text', 'email', $errors, [...],  [...]) !!}
    {!! Form::control('password', 'password', $errors, [...]) !!}
    {!! Form::control('checkbox', 'remember', $errors, [...], [...]) !!}
    {!! Form::submit('Sign in') !!}
{!! Form::close() !!}
```

---

[![Login Form](tl-loginform.png)](tl-loginform.png)

---

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~168 days

Recently: every ~234 days

Total

13

Last Release

619d ago

Major Versions

5.8.x-dev → v8.0.02022-02-12

7.0.x-dev → 8.x-dev2022-02-12

8.x-dev → v9.0.02023-05-25

9.x-dev → 10.x-dev2023-06-02

10.x-dev → 11.x-dev2024-09-05

PHP version history (3 changes)5.7.x-devPHP &gt;=7.1.3

6.0.x-devPHP &gt;=7.2

v7.0.1PHP &gt;=7.2.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/73d77c0523a01f759b2ad326a75cf71aa7d9ceaa6cd991c3c0e8c69ca9ade99a?d=identicon)[TiDJ](/maintainers/TiDJ)

---

Top Contributors

[![tomjamon](https://avatars.githubusercontent.com/u/3299394?v=4)](https://github.com/tomjamon "tomjamon (48 commits)")

---

Tags

laravelhtmlbootstrapformtailwindcss

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tomjamon-laravel-custom-html/health.svg)

```
[![Health](https://phpackages.com/badges/tomjamon-laravel-custom-html/health.svg)](https://phpackages.com/packages/tomjamon-laravel-custom-html)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[anahkiasen/former

A powerful form builder

1.4k1.4M14](/packages/anahkiasen-former)[laravie/html

HTML and Form Builders for the Laravel Framework

36184.6k4](/packages/laravie-html)[laravellux/html

HTML and Form Builders for the Laravel Framework

35239.2k3](/packages/laravellux-html)[konekt/html

HTML and Form Builders for the Laravel Framework

24403.2k5](/packages/konekt-html)[cornford/bootstrapper

An easy way to intergrate Twitter Bootstrap with Laravel.

232.7k](/packages/cornford-bootstrapper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
