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

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

dizatech/htmldom
================

Simple Html Dom Parser for Laravel 4 - Upgarded for higher versions

03PHP

Since Feb 18Pushed 2y agoCompare

[ Source](https://github.com/dizatech/Htmldom)[ Packagist](https://packagist.org/packages/dizatech/htmldom)[ RSS](/packages/dizatech-htmldom/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)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": "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

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ca25b6ce9e40a205b65efd8c9fb92865bbf6d4586f11be7ca76be0d4151b808?d=identicon)[omidfarahani](/maintainers/omidfarahani)

---

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)")[![e1111o](https://avatars.githubusercontent.com/u/28762699?v=4)](https://github.com/e1111o "e1111o (1 commits)")[![alep84](https://avatars.githubusercontent.com/u/7993555?v=4)](https://github.com/alep84 "alep84 (1 commits)")[![omidfarahani](https://avatars.githubusercontent.com/u/10830204?v=4)](https://github.com/omidfarahani "omidfarahani (1 commits)")[![pilou](https://avatars.githubusercontent.com/u/1092182?v=4)](https://github.com/pilou "pilou (1 commits)")[![lahaxearnaud](https://avatars.githubusercontent.com/u/1364221?v=4)](https://github.com/lahaxearnaud "lahaxearnaud (1 commits)")[![clemblanco](https://avatars.githubusercontent.com/u/668419?v=4)](https://github.com/clemblanco "clemblanco (1 commits)")

### Embed Badge

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

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

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M45](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

45153.1k6](/packages/jstewmc-rtf)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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