PHPackages                             abianbiya/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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. abianbiya/collective-spatie-html-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

abianbiya/collective-spatie-html-parser
=======================================

fork of alban/laravel-collective-spatie-html-parser

1.1.8(1mo ago)050MITPHPPHP ^8.4 | ^8.3 | ^8.2 | ^8.0 | ^7.4

Since Jun 19Pushed 1mo agoCompare

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

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Laravel Collective to Spatie Laravel HTML Adapter (Fork of alban/laravel-collective-spatie-html-parser)
=======================================================================================================

[](#laravel-collective-to-spatie-laravel-html-adapter-fork-of-albanlaravel-collective-spatie-html-parser)

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

44

—

FairBetter than 92% of packages

Maintenance91

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.2% 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 ~284 days

Total

2

Last Release

43d ago

PHP version history (2 changes)v1.1.7PHP ^8.3 | ^8.2 | ^8.0 | ^7.4

1.1.8PHP ^8.4 | ^8.3 | ^8.2 | ^8.0 | ^7.4

### Community

Maintainers

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

---

Top Contributors

[![christianalban](https://avatars.githubusercontent.com/u/116094436?v=4)](https://github.com/christianalban "christianalban (44 commits)")[![abianbiya](https://avatars.githubusercontent.com/u/26533949?v=4)](https://github.com/abianbiya "abianbiya (5 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/abianbiya-collective-spatie-html-parser/health.svg)

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

###  Alternatives

[spatie/laravel-sitemap

Create and generate sitemaps with ease

2.6k14.6M107](/packages/spatie-laravel-sitemap)[ultrono/laravel-sitemap

Sitemap generator for Laravel 11, 12 and 13

36412.6k6](/packages/ultrono-laravel-sitemap)[mischasigtermans/laravel-toon

Token-Optimized Object Notation encoder/decoder for Laravel with intelligent nested object handling

13113.1k](/packages/mischasigtermans-laravel-toon)[dniccum/nova-documentation

A Laravel Nova tool that allows you to add markdown-based documentation to your administrator's dashboard.

37116.4k](/packages/dniccum-nova-documentation)[sbsaga/toon

🧠 TOON for Laravel — a compact, human-readable, and token-efficient data format for AI prompts &amp; LLM contexts. Perfect for ChatGPT, Gemini, Claude, Mistral, and OpenAI integrations (JSON ⇄ TOON).

6115.6k](/packages/sbsaga-toon)

PHPackages © 2026

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