PHPackages                             vluzrmos/collective-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. vluzrmos/collective-html

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

vluzrmos/collective-html
========================

LaravelCollective Html and Form builder for Lumen.

v1.0.13(9y ago)2223.9k13[1 issues](https://github.com/vluzrmos/collective-html/issues)[1 PRs](https://github.com/vluzrmos/collective-html/pulls)MITPHPPHP &gt;=5.4.0

Since May 6Pushed 8y ago3 watchersCompare

[ Source](https://github.com/vluzrmos/collective-html)[ Packagist](https://packagist.org/packages/vluzrmos/collective-html)[ RSS](/packages/vluzrmos-collective-html/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (17)Used By (0)

Forms &amp; HTML
================

[](#forms--html)

[![Join the chat at https://gitter.im/vluzrmos/collective-html](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/vluzrmos/collective-html?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![Lumen Version](https://camo.githubusercontent.com/66987c5902e1272276fc58502c43ab4918ba7ef24d02b27c5e675b4ab9918a01/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c756d656e2d352e30253230746f253230352e322d6f72616e67652e737667)](https://packagist.org/packages/vluzrmos/collective-html)[![Latest Stable Version](https://camo.githubusercontent.com/f56de1e4f9fecc7b5d9eb004f72ec4af88165553e1dcf90fbf00a37441e1e523/68747470733a2f2f706f7365722e707567782e6f72672f766c757a726d6f732f636f6c6c6563746976652d68746d6c2f762f737461626c65)](https://packagist.org/packages/vluzrmos/collective-html) [![Total Downloads](https://camo.githubusercontent.com/75c076868127befb7ba20508bf893001aad75d41dcfd7534af8528b7c154ac05/68747470733a2f2f706f7365722e707567782e6f72672f766c757a726d6f732f636f6c6c6563746976652d68746d6c2f646f776e6c6f616473)](https://packagist.org/packages/vluzrmos/collective-html) [![Latest Unstable Version](https://camo.githubusercontent.com/ef96f390f662ef2d7a9ea4a610e232660f99c48fe0af3b55ad96ebcacf88719e/68747470733a2f2f706f7365722e707567782e6f72672f766c757a726d6f732f636f6c6c6563746976652d68746d6c2f762f756e737461626c65)](https://packagist.org/packages/vluzrmos/collective-html) [![License](https://camo.githubusercontent.com/80e6c86d2bb8e5f86b75d7b5516f2bdcc0a89472d97f5326de07de6ae2f23e91/68747470733a2f2f706f7365722e707567782e6f72672f766c757a726d6f732f636f6c6c6563746976652d68746d6c2f6c6963656e7365)](https://packagist.org/packages/vluzrmos/collective-html) [![Build Status](https://camo.githubusercontent.com/583bcb500a2cf5c9fc4ed6dcad199538ce24fe689b9339d200ed368126bc0e37/68747470733a2f2f7472617669732d63692e6f72672f766c757a726d6f732f636f6c6c6563746976652d68746d6c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vluzrmos/collective-html)

Official documentation for Forms &amp; Html for The Laravel/Lumen Framework can be found at the [LaravelCollective](http://laravelcollective.com/docs/master/html) website.

Instalation on Lumen
--------------------

[](#instalation-on-lumen)

```
composer require vluzrmos/collective-html

```

Configuration
-------------

[](#configuration)

On your `bootstrap/app.php`:

```
$app->register('Collective\Html\HtmlServiceProvider');

class_alias('Collective\Html\HtmlFacade', 'Html');

class_alias('Collective\Html\FormFacade', 'Form');
```

And remember to enable de facades, just uncomment that line:

```
$app->withFacades()
```

If you want to automatically inject the `$html` and `$form` variables on all your Blade's View:

```
$app->register('Collective\Html\InjectVarsServiceProvider');
```

And now you will not need the facades anymore, just that:

```
{!! $form->open() !!}
//...
{!! $html->asset() !!}

```

Known Issues
------------

[](#known-issues)

Lumen UrlGenerator doesn't support `route('route.name', $id)`, because that you have to use an associative array:

```
{!! Form::open(['route' => ['route.name', ['id' => $id ] ]]) !!}

```

Lumen UrlGenerator do not generate correctly urls on console commands or non-browser requests, to fix that I suggest you to install my other package:

```
composer require vluzrmos/lumen-url-host

```

And add `lumenUrlHost('your-disired.domain:port');` at the top of your `bootstrap/app.php` file.

Link: [vluzrmos/lumen-url-host](https://github.com/vluzrmos/lumen-url-host).

Replacing LaravelCollective/Html
--------------------------------

[](#replacing-laravelcollectivehtml)

If your project require some package that requires `laravelcollective/html`, you can edit your composer.json to:

for Lumen 5.1:

```
"vluzrmos/collective-html": "1.0.9 as 5.1",
"package-vendor/package-required-name":"package-version" //that requires laravelcollective/html 5.1

```

for Lumen 5.0:

```
"vluzrmos/collective-html": "1.0.9 as 5.0",
"package-vendor/package-required-name":"package-version" //that requires laravelcollective/html 5.0

```

> Note: use version 1.0.9 or the latest vluzrmos/collective-html version.

Credits
-------

[](#credits)

That package is just a free modification of [LaravelCollective/Html](https://github.com/LaravelCollective/html) to work with Lumen Framework.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~34 days

Recently: every ~113 days

Total

16

Last Release

3511d ago

PHP version history (2 changes)5.0.x-devPHP &gt;=5.4.0

5.1.x-devPHP &gt;=5.5.9

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/450848?v=4)[Vagner Luz do Carmo](/maintainers/vluzrmos)[@vluzrmos](https://github.com/vluzrmos)

---

Top Contributors

[![taylorotwell](https://avatars.githubusercontent.com/u/463230?v=4)](https://github.com/taylorotwell "taylorotwell (92 commits)")[![vluzrmos](https://avatars.githubusercontent.com/u/450848?v=4)](https://github.com/vluzrmos "vluzrmos (42 commits)")[![adamgoose](https://avatars.githubusercontent.com/u/611068?v=4)](https://github.com/adamgoose "adamgoose (14 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (8 commits)")[![tshafer](https://avatars.githubusercontent.com/u/299464?v=4)](https://github.com/tshafer "tshafer (8 commits)")[![RobinMalfait](https://avatars.githubusercontent.com/u/1834413?v=4)](https://github.com/RobinMalfait "RobinMalfait (6 commits)")[![adambant](https://avatars.githubusercontent.com/u/700931?v=4)](https://github.com/adambant "adambant (5 commits)")[![lucasmichot](https://avatars.githubusercontent.com/u/513603?v=4)](https://github.com/lucasmichot "lucasmichot (4 commits)")[![crynobone](https://avatars.githubusercontent.com/u/172966?v=4)](https://github.com/crynobone "crynobone (3 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (3 commits)")[![thujohn](https://avatars.githubusercontent.com/u/580699?v=4)](https://github.com/thujohn "thujohn (3 commits)")[![Anahkiasen](https://avatars.githubusercontent.com/u/1321596?v=4)](https://github.com/Anahkiasen "Anahkiasen (3 commits)")[![franzliedke](https://avatars.githubusercontent.com/u/249125?v=4)](https://github.com/franzliedke "franzliedke (3 commits)")[![JosephSilber](https://avatars.githubusercontent.com/u/1403741?v=4)](https://github.com/JosephSilber "JosephSilber (2 commits)")[![devinfd](https://avatars.githubusercontent.com/u/468399?v=4)](https://github.com/devinfd "devinfd (2 commits)")[![driesvints](https://avatars.githubusercontent.com/u/594614?v=4)](https://github.com/driesvints "driesvints (2 commits)")[![garygreen](https://avatars.githubusercontent.com/u/1702638?v=4)](https://github.com/garygreen "garygreen (2 commits)")[![greggilbert](https://avatars.githubusercontent.com/u/169482?v=4)](https://github.com/greggilbert "greggilbert (2 commits)")[![gregoryduckworth](https://avatars.githubusercontent.com/u/2647926?v=4)](https://github.com/gregoryduckworth "gregoryduckworth (2 commits)")[![PhiloNL](https://avatars.githubusercontent.com/u/1133950?v=4)](https://github.com/PhiloNL "PhiloNL (1 commits)")

---

Tags

lumenhtmlbuilderform

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vluzrmos-collective-html/health.svg)

```
[![Health](https://phpackages.com/badges/vluzrmos-collective-html/health.svg)](https://phpackages.com/packages/vluzrmos-collective-html)
```

###  Alternatives

[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)[tomjamon/laravel-custom-html

Custom HTML generator for Laravel (Based on LaravelCollective HTML)

1018.6k](/packages/tomjamon-laravel-custom-html)[webup/laravel-form

A Laravel package to help build forms.

147.2k1](/packages/webup-laravel-form)[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)
