PHPackages                             shootkiran/laravel-collective-spatie-html-parser - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. shootkiran/laravel-collective-spatie-html-parser

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

shootkiran/laravel-collective-spatie-html-parser
================================================

Adapter class that allows use spatie/laravel-html for old projects that were using the abanondated laravelcollective/html package, and allow to update to new versions of laravel

07PHP

Since Feb 25Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Collective to Spatie Laravel HTML Adapter
=================================================

[](#laravel-collective-to-spatie-laravel-html-adapter)

This package serves as an adapter to help projects that depend on the obsolete `laravel-collective/html` library. It provides an interface that uses the same syntax as the `Form` class of `laravel-collective/html` to create HTML elements. Under the hood, it utilizes the `spatie/laravel-html` library, which is actively maintained, to generate the HTML elements. This allows projects to update to newer Laravel versions without changing the HTML creation syntax.

Features
--------

[](#features)

- Zero configuration needed, works out of the box.
- Uses the same syntax as `laravel-collective/html`.
- Leverages the actively maintained `spatie/laravel-html` library.

Available Methods
-----------------

[](#available-methods)

The following methods can be used and are located in the `src/FormAdapter` directory:

- `checkbox($name, $value = 1, $checked = null, $options = [])`
- `open(array $options = [])`
- `label($name, $value = null, $options = [], $escape_html = true)`
- `text($name, $value = null, $options = [])`
- `password($name, $options = [])`
- `select($name, $list = [], $selected = null, array $selectAttributes = [], array $optionsAttributes = [], array $optgroupsAttributes = [])`
- `radio($name, $value = null, $checked = null, $options = [])`
- `submit($value = null, $options = [])`
- `close()`
- `input($type, $name, $value = null, $options = [])`
- `search($name, $value = null, $options = [])`
- `model($model, array $options = [])`
- `hidden($name, $value = null, $options = [])`
- `email($name, $value = null, $options = [])`
- `tel($name, $value = null, $options = [])`
- `number($name, $value = null, $options = [])`
- `date($name, $value = null, $options = [])`
- `datetime($name, $value = null, $options = [])`
- `datetimeLocal($name, $value = null, $options = [])`
- `time($name, $value = null, $options = [])`
- `url($name, $value = null, $options = [])`
- `file($name, $options = [])`
- `textarea($name, $value = null, $options = [])`
- `reset($value, $attributes = [])`
- `image($url, $name = null, $attributes = [])`
- `color($name, $value = null, $options = [])`
- `button($value = null, $options = [])`

Installation
------------

[](#installation)

To install the package, use composer:

```
composer require alban/laravel-collective-spatie-html-parser
```

Usage
-----

[](#usage)

The methods listed above can be used in the same way as you would use the Form class from laravel-collective. Here is an example in a Blade template:

```
{{-- Using the FormAdapter class in a Blade template --}}
{!! Form::text('relationship', $item->client->agent_relationship, ['required', 'class' => 'form-control input-sm']) !!}
```

For more examples, please refer to the source code in the `src/FormAdapter.php` class file.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

Top contributor holds 79.5% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/753d56b1e1692db4d5d9208529b7f4287e0e107fe0a3ed7e5f8fc22cd9347684?d=identicon)[shootkiran@gmail.com](/maintainers/shootkiran@gmail.com)

---

Top Contributors

[![christianalban](https://avatars.githubusercontent.com/u/116094436?v=4)](https://github.com/christianalban "christianalban (35 commits)")[![itsjop](https://avatars.githubusercontent.com/u/2566140?v=4)](https://github.com/itsjop "itsjop (5 commits)")[![shootkiran](https://avatars.githubusercontent.com/u/9031860?v=4)](https://github.com/shootkiran "shootkiran (4 commits)")

### Embed Badge

![Health badge](/badges/shootkiran-laravel-collective-spatie-html-parser/health.svg)

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

PHPackages © 2026

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