PHPackages                             diggin/diggin-scraper - 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. diggin/diggin-scraper

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

diggin/diggin-scraper
=====================

web-sraping component, inspired by Perl’s Web::Scraper. It provides a DSL-ish interface for traversing HTML documents and returning a neatly arranged PHP ‘s multidimensional array

v0.9.2(10y ago)88121BSD-3-ClausePHP

Since Oct 3Pushed 10y ago3 watchersCompare

[ Source](https://github.com/diggin/Diggin_Scraper)[ Packagist](https://packagist.org/packages/diggin/diggin-scraper)[ RSS](/packages/diggin-diggin-scraper/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (6)Used By (1)

Diggin\_Scraper
===============

[](#diggin_scraper)

web-sraping component, inspired by Perl’s Web::Scraper. It provides a DSL-ish interface for traversing HTML documents and returning a neatly arranged PHP's multidimensional array.

\#CHANGELOG for 0.9.0 change behavior when extracting target is not found [\#1](https://github.com/diggin/Diggin_Scraper/issues/1)

if you want throw exception for v0.8 compatibility, please use throwTargetExceptionsOn method.

```
$scraper->throwTargetExceptionsOn(true);

```

Feature
=======

[](#feature)

- into multidimensional array
- Handle CSS Selector or XPath expression
- Automatically convert to UTF-8
- based on Diggin\_Http\_Charset
- Beautify ugly HTML into XHTML automatically
- based on Diggin\_Scraper\_Adapter\_Htmlscraping &amp; tidy
- convert relative path into absolute URL automatically ("a href" &amp; "img src")
- Enable change Strategy (xpath or regex) &amp; Enable change pretreat converting HTML

Requirements
------------

[](#requirements)

- PHP 5.3.3 or over
- Zend Framework 2
- Diggin components
- Diggin\_Http\_Charset
- Diggin\_Scraper\_Adapter\_Htmlscraping

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~294 days

Total

5

Last Release

3844d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4eed2726ad1fce689a99672d965d8b4a387f030f08290e00708b66e4621139d2?d=identicon)[sasezaki](/maintainers/sasezaki)

---

Top Contributors

[![sasezaki](https://avatars.githubusercontent.com/u/42755?v=4)](https://github.com/sasezaki "sasezaki (33 commits)")

### Embed Badge

![Health badge](/badges/diggin-diggin-scraper/health.svg)

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

###  Alternatives

[padosoft/php-oara

The goal of the Open Affiliate Report Aggregator (OARA) is to develop a set of PHP classes that can download affiliate reports from a number of affiliate networks, and store the data in a common format.

1811.4k1](/packages/padosoft-php-oara)

PHPackages © 2026

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