PHPackages                             vladlen/html-parser - 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. vladlen/html-parser

ActiveLibrary

vladlen/html-parser
===================

Serpstat test task. Recursively gets images links from a domain. Saves internal and external links.

00PHP

Since Apr 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/juster-name/php-html-parser)[ Packagist](https://packagist.org/packages/vladlen/html-parser)[ RSS](/packages/vladlen-html-parser/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

php-html-parser
===============

[](#php-html-parser)

Serpstat test task. Recursively gets images links from a domain. Saves internal and external links.

Installation:
-------------

[](#installation)

###### Add to composer.json:

[](#add-to-composerjson)

```
{
    "require": {
        "vladlen/html-parser": "dev-master"
    }
}
```

###### Or execute composer command:

[](#or-execute-composer-command)

`composer require vladlen/html-parser`

Usage:
------

[](#usage)

```
namespace Test\Parser;
require_once (__DIR__."/vendor/autoload.php");

require ('htmlParser.php');
require ('filters.php');

$url = "https://google.com/";
$hrefFilter =  new HrefFilter($url);
$htmlCrawler = new HtmlCrawler();

$aHrefOption = new Option('a', null,    // null for no tag filter
    [new Option('href', $hrefFilter)]);

$parser = new HtmlParser($htmlCrawler, [$aHrefOption]);

$logAction = new UserCallActionParam("Test\\Parser\\_log");
$parser->onLog->add($logAction);

$parser->parse($url);

function _log($val)
{
    ...
}
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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/dec4ea05e1fe1d8fb139f3364f936037a39ea846ff3b0d26a16e495b299df111?d=identicon)[vladlen](/maintainers/vladlen)

---

Top Contributors

[![juster-name](https://avatars.githubusercontent.com/u/16381415?v=4)](https://github.com/juster-name "juster-name (60 commits)")

### Embed Badge

![Health badge](/badges/vladlen-html-parser/health.svg)

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

PHPackages © 2026

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