PHPackages                             josephbergevin/scraper-more-faster - 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. josephbergevin/scraper-more-faster

ActiveLibrary

josephbergevin/scraper-more-faster
==================================

A PHP Web Scraper - Designed for Speed

12386[2 issues](https://github.com/josephbergevin/scraper-more-faster/issues)PHP

Since Dec 16Pushed 12y ago1 watchersCompare

[ Source](https://github.com/josephbergevin/scraper-more-faster)[ Packagist](https://packagist.org/packages/josephbergevin/scraper-more-faster)[ RSS](/packages/josephbergevin-scraper-more-faster/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

ScraperMoreFaster
=================

[](#scrapermorefaster)

ScraperMoreFaster is a PHP class built to scrape the content of a webpage faster than SimpleHTMLDOM (by SourceForge). It came about when I needed a faster scraper solution for a web crawler. SimpleHTMLDOM is a wonderful parser, and very robust in it's feature set. But unfortunately too slow for crawler purposes, where every millisecond counts.

Setup
-----

[](#setup)

The ScraperMoreFaster.php file found in the lib folder is the only file needed to use this class.

Usage
-----

[](#usage)

### Defining the HTML to be Parsed

[](#defining-the-html-to-be-parsed)

```
$scraper_more_faster = new ScraperMoreFaster;

```

**To define the HTML file *from a URL*:**

```
$scraper_more_faster->file_get_html($url);

```

This will define the HTML by using the file\_get\_contents php command to pull in the HTML from the given URL.

**To define the HTML file *from a string*:**

```
$scraper_more_faster->str_get_html($html_str);

```

This will define the HTML simply from the string passed in the $html\_str var.

### Scrape PlainText from page

[](#scrape-plaintext-from-page)

My biggest purpose for creating this class was for the PlainText functionality. In speed tests, I found the plaintext functionality to be dozens of times faster than SimpleHTMLDOM's plaintext functionality. And in all comparison tests, the plaintext from each tool was 99% - 100% similar.

To run this command (after defining the HTML as desribed above):

```
$scraper_more_faster->plaintext();

```

Examples
--------

[](#examples)

See smf\_tester.php for example usage.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![josephbergevin](https://avatars.githubusercontent.com/u/2521874?v=4)](https://github.com/josephbergevin "josephbergevin (5 commits)")

### Embed Badge

![Health badge](/badges/josephbergevin-scraper-more-faster/health.svg)

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

PHPackages © 2026

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