PHPackages                             hedii/extractors - 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. hedii/extractors

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

hedii/extractors
================

Extractor is a package that find targeted types of resources in html dom.

2.1.0(8y ago)71.6k3[1 PRs](https://github.com/hedii/extractors/pulls)1MITPHPPHP &gt;=7.1

Since Feb 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/hedii/extractors)[ Packagist](https://packagist.org/packages/hedii/extractors)[ Docs](https://github.com/hedii/extractors)[ RSS](/packages/hedii-extractors/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (4)Versions (6)Used By (1)

[![Build Status](https://camo.githubusercontent.com/cf357cb805cd75e2918c9aaa470c57cc0f2d97338bb4e19c151eb775dc81832f/68747470733a2f2f7472617669732d63692e6f72672f68656469692f657874726163746f72732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hedii/extractors)

Extractors
==========

[](#extractors)

Extractor is a package that find targeted types of resources in html dom. Currently, only 2 types of resources are available: urls and emails. The found resources are returned as an array.

The `Extractor` class can be extended to add more resources types.

### Install

[](#install)

Via Composer

```
composer require hedii/extractors
```

### Usage

[](#usage)

Currently, only 2 types of resources are available: urls and emails.

```
// require composer autoloader
require '/path/to/vendor/autoload.php';

// instantiate
$extractor = new \Hedii\Extractors\Extractor();

// get all the urls on example.com page dom
$urls = $extractor->searchFor(['urls'])
    ->at('http://example.com')
    ->get();

// get all the emails on example.com page dom
$emails = $extractor->searchFor(['emails'])
    ->at('http://example.com')
    ->get();

// get all the urls and emails on example.com page dom
$urlsAndEmails = $extractor->searchFor(['urls', 'emails'])
    ->at('http://example.com')
    ->get();
```

### Testing

[](#testing)

```
composer test
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 93.8% 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.

###  Release Activity

Cadence

Every ~271 days

Total

4

Last Release

2966d ago

Major Versions

v1.x-dev → 2.0.02018-01-20

PHP version history (3 changes)1.0.0PHP ~5.6|~7.0

2.0.0PHP &gt;=7.2

2.1.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/e4a5db1cfc95de95128aba94b6f26a69d543e7f1e95f5f9afcdaf7e1db836fe1?d=identicon)[hedii](/maintainers/hedii)

---

Top Contributors

[![hedii](https://avatars.githubusercontent.com/u/5358048?v=4)](https://github.com/hedii "hedii (15 commits)")[![simonschaufi](https://avatars.githubusercontent.com/u/941794?v=4)](https://github.com/simonschaufi "simonschaufi (1 commits)")

---

Tags

hediiextractors

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hedii-extractors/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[spatie/crawler

Crawl all internal links found on a website

2.8k18.5M59](/packages/spatie-crawler)[drupal/drupal-extension

Drupal extension for Behat

22215.7M167](/packages/drupal-drupal-extension)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.6M324](/packages/drupal-core-dev)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49517.1k](/packages/blackfire-player)[chameleon-system/chameleon-base

The Chameleon System core.

1027.9k4](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

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