PHPackages                             alban/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. alban/laravel-collective-spatie-html-parser

ActiveLibrary

alban/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

v1.1.11(8mo ago)77.1k↓31.7%8MITPHPPHP ^8.3 | ^8.2 | ^8.0 | ^7.4

Since May 1Pushed 8mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (18)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).

Contributing
------------

[](#contributing)

You are welcome to contribute to this project. Please refer to the [contributing guidelines](CONTRIBUTING.md) for more information.

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance61

Regular maintenance activity

Popularity33

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 84.6% 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 ~33 days

Recently: every ~79 days

Total

16

Last Release

250d ago

PHP version history (5 changes)v1.0.0PHP ^7.2

v1.1.2PHP ^7.3

v1.1.4PHP ^8.0

v1.1.5PHP ^8.2 | ^8.0 | ^7.4

v1.1.10PHP ^8.3 | ^8.2 | ^8.0 | ^7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/07fcfce4b418339422c3b91670b096eb83e0c93c628bf707ae52be87417f4df6?d=identicon)[chrisalban](/maintainers/chrisalban)

---

Top Contributors

[![christianalban](https://avatars.githubusercontent.com/u/116094436?v=4)](https://github.com/christianalban "christianalban (44 commits)")[![kamelher](https://avatars.githubusercontent.com/u/8544176?v=4)](https://github.com/kamelher "kamelher (5 commits)")[![qa1](https://avatars.githubusercontent.com/u/6631000?v=4)](https://github.com/qa1 "qa1 (2 commits)")[![haizadvnet](https://avatars.githubusercontent.com/u/85096754?v=4)](https://github.com/haizadvnet "haizadvnet (1 commits)")

### Embed Badge

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

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

###  Alternatives

[sebastienheyd/boilerplate

Laravel Boilerplate based on AdminLTE 3 with blade components, user management, roles, permissions, logs viewer, ...

28618.2k3](/packages/sebastienheyd-boilerplate)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[osiemsiedem/laravel-autolink

A Laravel package for converting URLs in a given string of text into clickable links.

13126.3k](/packages/osiemsiedem-laravel-autolink)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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