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 1mo ago

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 59% 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

1586d 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

[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)[json-mapper/laravel-package

The JsonMapper package for Laravel

25170.4k3](/packages/json-mapper-laravel-package)

PHPackages © 2026

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