PHPackages                             fahmiardi/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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. fahmiardi/htmldom

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

fahmiardi/htmldom
=================

Simple Html Dom Parser for Laravel 4

1.0(11y ago)01.2k1MITPHPPHP &gt;=5.3.0

Since May 6Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

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": "dev-master"
    }
}
```

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

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor2

2 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

4031d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3264535342f6dd2bacce6425cb96c32d6113e25e3adac91a11660be332e764eb?d=identicon)[fahmiardi](/maintainers/fahmiardi)

---

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

---

Tags

laravelHTML Parser

### Embed Badge

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

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

###  Alternatives

[ajthinking/archetype

Programmatically edit PHP and Laravel files.

2723.4M12](/packages/ajthinking-archetype)[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)
