PHPackages                             yangqi/htmldom - 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. yangqi/htmldom

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

yangqi/htmldom
==============

Simple Html Dom Parser for Laravel 4

v1.0.0(10y ago)94726.3k↓38.3%59[8 issues](https://github.com/yangqi/Htmldom/issues)[4 PRs](https://github.com/yangqi/Htmldom/pulls)8MITPHPPHP &gt;=5.3.0

Since Sep 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/yangqi/Htmldom)[ Packagist](https://packagist.org/packages/yangqi/htmldom)[ RSS](/packages/yangqi-htmldom/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (2)Used By (8)

Htmldom
=======

[](#htmldom)

A Htmldom package for Laravel 4 and 5 based on Simple HTML Dom Parser

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

[](#installation)

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

```
{
    "require": {
        "yangqi/htmldom": "1.0.*"
    }
}
```

Laravel 5 Setup (same as Laravel 4)
-----------------------------------

[](#laravel-5-setup-same-as-laravel-4)

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

```
'providers' => array(
    ...
	'Yangqi\Htmldom\HtmldomServiceProvider',
    ...
```

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

```
'aliases' => array(
    ...
	'Htmldom' => 'Yangqi\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

42

—

FairBetter than 88% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity54

Moderate usage in the ecosystem

Community29

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3950d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e2d8ef8b7e8828c8a777aa9e67161def5b7b506da8b190fec0a68444d969c1b?d=identicon)[yangqi](/maintainers/yangqi)

---

Top Contributors

[![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)")[![alep84](https://avatars.githubusercontent.com/u/7993555?v=4)](https://github.com/alep84 "alep84 (1 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)")

---

Tags

laravelHTML Parser

### Embed Badge

![Health badge](/badges/yangqi-htmldom/health.svg)

```
[![Health](https://phpackages.com/badges/yangqi-htmldom/health.svg)](https://phpackages.com/packages/yangqi-htmldom)
```

###  Alternatives

[stephenjude/filament-blog

Filament Blog Builder

20619.4k](/packages/stephenjude-filament-blog)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11273.0k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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