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

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

larammerce/html-dom
===================

Simple Html Dom Parser for Laravel 8

v1.1.1(4y ago)012MITPHPPHP ^8.0

Since Sep 10Pushed 4y agoCompare

[ Source](https://github.com/larammerce/html-dom)[ Packagist](https://packagist.org/packages/larammerce/html-dom)[ RSS](/packages/larammerce-html-dom/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (3)Used By (0)

HtmlDom
=======

[](#htmldom)

A HtmlDom package for Laravel 8 based on Simple HTML Dom Parser

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

[](#installation)

Add the following line to the `require` section of `composer.json`:

```
{
  "require": {
    "larammerce/html-dom": "1.1.*"
  }
}
```

Laravel 8 Setup
---------------

[](#laravel-8-setup)

1. Add the service provider to `config/app.php`.

```
'providers' => array(
    ...
	'Larammerce\HtmlDom\HtmlDomServiceProvider',
    ...
```

2. Add alias to `config/app.php`.

```
'aliases' => array(
    ...
	'HtmlDom' => 'Larammerce\HtmlDom\HtmlDom',
    ...
```

Usage
-----

[](#usage)

1. Use following:

```
$html = new \HtmlDom('http://www.example.com');

// Find all images
foreach($html->find('img') as $element)
       echo $element->src . '';

// Find all links
foreach($html->find('a') as $element)
       echo $element->href . '';
```

See the detailed documentation

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor3

3 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 ~2317 days

Total

2

Last Release

1631d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.0

v1.1.1PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a527a06dcbac102eacd39bd8f8a5dfd3f82b5be0c55f7d471989a1e92cd9455?d=identicon)[a-khajelou](/maintainers/a-khajelou)

---

Top Contributors

[![arash-khajelou](https://avatars.githubusercontent.com/u/3676743?v=4)](https://github.com/arash-khajelou "arash-khajelou (2 commits)")[![blinkums](https://avatars.githubusercontent.com/u/8732291?v=4)](https://github.com/blinkums "blinkums (2 commits)")[![yangqi](https://avatars.githubusercontent.com/u/211604?v=4)](https://github.com/yangqi "yangqi (2 commits)")[![lahaxearnaud](https://avatars.githubusercontent.com/u/1364221?v=4)](https://github.com/lahaxearnaud "lahaxearnaud (1 commits)")[![pilou](https://avatars.githubusercontent.com/u/1092182?v=4)](https://github.com/pilou "pilou (1 commits)")[![e1111o](https://avatars.githubusercontent.com/u/28762699?v=4)](https://github.com/e1111o "e1111o (1 commits)")[![clemblanco](https://avatars.githubusercontent.com/u/668419?v=4)](https://github.com/clemblanco "clemblanco (1 commits)")[![alep84](https://avatars.githubusercontent.com/u/7993555?v=4)](https://github.com/alep84 "alep84 (1 commits)")

---

Tags

laravelHTML Parser

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M193](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[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).

6753.8k](/packages/sbsaga-toon)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React/Svelte) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4925.3k](/packages/erag-laravel-lang-sync-inertia)[ublabs/blade-simple-icons

A package to easily make use of Simple Icons in your Laravel Blade views.

1963.4k](/packages/ublabs-blade-simple-icons)

PHPackages © 2026

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