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

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

cyberwolf888/html
=================

HTML and Form Builders for the Laravel Framework

8.0.0(1y ago)082MITPHPPHP &gt;=8.2

Since Mar 27Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/cyberwolf888/collective-html)[ Packagist](https://packagist.org/packages/cyberwolf888/html)[ Docs](https://laravelcollective.com)[ RSS](/packages/cyberwolf888-html/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (4)Dependencies (8)Versions (7)Used By (0)

🧱 Collective HTML
=================

[](#-collective-html)

> HTML and Form Builders for the Laravel Framework — a maintained fork of [LaravelCollective/html](https://github.com/LaravelCollective/html).

[![Latest Stable Version](https://camo.githubusercontent.com/78e61ee0b26cd89ff79aac0c49649ef406375c5e8dbc81157a6f0a47705cfbdb/68747470733a2f2f706f7365722e707567782e6f72672f6379626572776f6c663838382f68746d6c2f762f737461626c652e737667)](https://packagist.org/packages/cyberwolf888/html)[![Total Downloads](https://camo.githubusercontent.com/54ba45637b5f20fd31cf1e2906a1fbc01a86f2ebf48f5ee8f990e2903b4e2358/68747470733a2f2f706f7365722e707567782e6f72672f6379626572776f6c663838382f68746d6c2f646f776e6c6f616473)](https://packagist.org/packages/cyberwolf888/html)[![License](https://camo.githubusercontent.com/489a56e4c139ddea4b92fcdc3b635e1ba9c6a1ed652e3b8dce9df13c56af5060/68747470733a2f2f706f7365722e707567782e6f72672f6379626572776f6c663838382f68746d6c2f6c6963656e73652e737667)](https://packagist.org/packages/cyberwolf888/html)[![PHP](https://camo.githubusercontent.com/f2a8ce481f9787833e7d3330d6cdf3f1494f984301cbeaf6bc14fcfc34efc316/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344382e322d626c7565)](https://www.php.net/)[![Laravel](https://camo.githubusercontent.com/7d4f7926f2a649c0a8edadc08268b5b346816fef3a2310e43b9f5aafd2873b96/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d362e782d2d31322e782d726564)](https://laravel.com)

---

✨ Features
----------

[](#-features)

- 🏗️ **Form Builder** — open/close forms, model binding, CSRF tokens, and all input types
- 🔗 **HTML Builder** — generate links, scripts, styles, lists, images, meta tags, and more
- ⚡ **Macro &amp; Component support** — extend both builders with your own methods
- 🔄 **Laravel auto-discovery** — no manual provider/alias registration needed
- 🧪 **Laravel 6–12 compatible** with PHP 8.2+

---

📦 Installation
--------------

[](#-installation)

```
composer require cyberwolf888/html
```

Laravel's auto-discovery will register the service provider and facades automatically.

If you prefer manual registration, add to `config/app.php`:

```
'providers' => [
    Collective\Html\HtmlServiceProvider::class,
],

'aliases' => [
    'Form' => Collective\Html\FormFacade::class,
    'Html' => Collective\Html\HtmlFacade::class,
],
```

---

🚀 Usage
-------

[](#-usage)

### Form Builder

[](#form-builder)

```
{{-- Open a form --}}
{!! Form::open(['url' => '/login', 'method' => 'POST']) !!}

{{-- Model-bound form --}}
{!! Form::model($user, ['route' => ['users.update', $user->id], 'method' => 'PUT']) !!}

{{-- Common inputs --}}
{!! Form::label('email', 'E-Mail Address') !!}
{!! Form::email('email', null, ['class' => 'form-control', 'placeholder' => 'you@example.com']) !!}

{!! Form::label('password', 'Password') !!}
{!! Form::password('password', ['class' => 'form-control']) !!}

{!! Form::label('role', 'Role') !!}
{!! Form::select('role', ['admin' => 'Admin', 'user' => 'User'], 'user') !!}

{!! Form::checkbox('remember', 1, true) !!} Remember me

{!! Form::submit('Login', ['class' => 'btn btn-primary']) !!}

{!! Form::close() !!}
```

#### Available Form Methods

[](#available-form-methods)

MethodDescription`Form::open()` / `Form::close()`Open and close a form tag`Form::model($model, $options)`Model-bound form`Form::token()`CSRF hidden input`Form::label($name, $value)`Label element`Form::text/email/password/number/...`Standard text inputs`Form::textarea($name)`Textarea`Form::select($name, $list)`Select dropdown`Form::selectRange/selectYear/selectMonth`Range/year/month selects`Form::checkbox/radio`Checkbox and radio inputs`Form::file($name)`File upload input`Form::submit/button/reset`Submit, button and reset`Form::hidden($name, $value)`Hidden input`Form::date/time/datetime/...`Date/time inputs`Form::color/range/search/tel/url/week`Specialized HTML5 inputs`Form::datalist($id, $list)`Datalist element---

### HTML Builder

[](#html-builder)

```
{{-- Scripts and styles --}}
{!! Html::script('js/app.js') !!}
{!! Html::style('css/app.css') !!}

{{-- Links --}}
{!! Html::link('https://example.com', 'Visit Site', ['class' => 'btn']) !!}
{!! Html::linkRoute('home', 'Home') !!}
{!! Html::mailto('hello@example.com', 'Contact Us') !!}

{{-- Images --}}
{!! Html::image('img/logo.png', 'Logo', ['width' => 100]) !!}
{!! Html::favicon('img/favicon.ico') !!}

{{-- Lists --}}
{!! Html::ul(['Apple', 'Banana', 'Cherry']) !!}
{!! Html::ol(['First', 'Second', 'Third']) !!}

{{-- Meta tags --}}
{!! Html::meta('description', 'My awesome page') !!}

{{-- Arbitrary tag --}}
{!! Html::tag('span', 'Hello', ['class' => 'badge']) !!}
```

---

### Macros

[](#macros)

Extend either builder with custom macros:

```
// AppServiceProvider::boot()
Form::macro('phone', function ($name, $value = null, $options = []) {
    return Form::tel($name, $value, array_merge(['pattern' => '[0-9]{10,15}'], $options));
});

Html::macro('badge', function ($text, $class = 'primary') {
    return new \Illuminate\Support\HtmlString(
        "{$text}"
    );
});
```

---

🤝 Contributing
--------------

[](#-contributing)

Please read [CONTRIBUTING.md](CONTRIBUTING.md) before submitting pull requests.

---

📄 License
---------

[](#-license)

This package is open-sourced software licensed under the [MIT license](LICENSE.txt).

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance71

Regular maintenance activity

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Recently: every ~192 days

Total

6

Last Release

49d ago

Major Versions

7.x-dev → 8.0.02025-05-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d07576a00f65e6a90764540cbfaa6e3631504c19440ddcf9ad70132696e32e0?d=identicon)[cyberwolf888](/maintainers/cyberwolf888)

---

Top Contributors

[![cyberwolf888](https://avatars.githubusercontent.com/u/8720485?v=4)](https://github.com/cyberwolf888 "cyberwolf888 (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9742.3M121](/packages/roots-acorn)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45344.0k1](/packages/pressbooks-pressbooks)[moonshine/moonshine

Laravel administration panel

1.3k239.9k75](/packages/moonshine-moonshine)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

721160.4k12](/packages/tallstackui-tallstackui)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5452.7k](/packages/hasinhayder-tyro-dashboard)

PHPackages © 2026

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