PHPackages                             czepter/phpscraper - 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. czepter/phpscraper

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

czepter/phpscraper
==================

An oppinionated way to access the web. See tests/ for examples.

0.4.7(5y ago)06GPL-3.0-or-laterPHPPHP ^7.2

Since May 4Pushed 5y agoCompare

[ Source](https://github.com/czepter/PHPScraper)[ Packagist](https://packagist.org/packages/czepter/phpscraper)[ Docs](https://phpscraper.de)[ Fund](https://www.buymeacoffee.com/spekulatius)[ GitHub Sponsors](https://github.com/sponsors/spekulatius)[ RSS](/packages/czepter-phpscraper/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (7)Versions (12)Used By (0)

[![PHP Scraper](header.jpg)](header.jpg)

[PHP Scraper](https://github.com/spekulatius/phpscraper)
========================================================

[](#php-scraper)

An opinionated &amp; limited way to scrape the web using PHP. The main goal is to get stuff done instead of getting distracted with xPath selectors, preparing data structures, etc. Instead, you can just "go to a website" and get an array with all details relevant to your scraping project.

Under the hood, it uses [Goutte](https://github.com/FriendsOfPHP/Goutte) and a few other packages. See [composer.json](https://github.com/spekulatius/PHPScraper/blob/master/composer.json).

Sponsors
--------

[](#sponsors)

This project is sponsored by:

[![](https://camo.githubusercontent.com/9c05aed64d77525de0e9dc203f1b155a39ff5e1c1a202dbfbf199b0b21361783/68747470733a2f2f6272696e67796f75726f776e69646561732e636f6d2f696d616765732f62796f692d6c6f676f2e6a7067)](https://bringyourownideas.com)

Want to sponsor this project? [Contact me](https://peterthaleikis.com/contact).

Examples
--------

[](#examples)

Here are a few impressions on the way the library works. More examples are on the [project website](https://phpscraper.de/examples/scrape-website-title.html).

### Get the Title of a Website

[](#get-the-title-of-a-website)

All scraping functionality can be accessed either as a function call or a property call. On the example of title scraping this would like like this:

```
$web = new \spekulatius\phpscraper();

$web->go('https://google.com');

// Returns "Google"
echo $web->title;

// Also returns "Google"
echo $web->title();
```

### Scrape the Images from a Website

[](#scrape-the-images-from-a-website)

Scraping the images including the attributes of the `img`-tags:

```
$web = new \spekulatius\phpscraper();

/**
 * Navigate to the test page.
 *
 * This page contains twice the image "cat.jpg".
 * Once with a relative path and once with an absolute path.
 */
$web->go('https://test-pages.phpscraper.de/meta/lorem-ipsum.html');

var_dump($web->imagesWithDetails);
/**
 * Contains:
 *
 * [
 *     'url' => 'https://test-pages.phpscraper.de/assets/cat.jpg',
 *     'alt' => 'absolute path',
 *     'width' => null,
 *     'height' => null,
 * ],
 * [
 *     'url' => 'https://test-pages.phpscraper.de/assets/cat.jpg',
 *     'alt' => 'relative path',
 *     'width' => null,
 *     'height' => null,
 * ]
 */
```

See the [full documentation](https://phpscraper.de) for more information and examples.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~24 days

Recently: every ~10 days

Total

11

Last Release

1960d ago

### Community

Maintainers

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

---

Top Contributors

[![spekulatius](https://avatars.githubusercontent.com/u/8433587?v=4)](https://github.com/spekulatius "spekulatius (54 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![czepter](https://avatars.githubusercontent.com/u/34108004?v=4)](https://github.com/czepter "czepter (3 commits)")[![ImgBotApp](https://avatars.githubusercontent.com/u/31427850?v=4)](https://github.com/ImgBotApp "ImgBotApp (1 commits)")[![vitormattos](https://avatars.githubusercontent.com/u/1079143?v=4)](https://github.com/vitormattos "vitormattos (1 commits)")

---

Tags

PHP Libraryweb-scraping PHP scraperPHP scrapingweb-access

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/czepter-phpscraper/health.svg)

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

###  Alternatives

[spekulatius/phpscraper

PHPScraper, built with simplicity in mind. See tests/ for more examples.

583143.5k3](/packages/spekulatius-phpscraper)[lodash-php/lodash-php

A port of Lodash to PHP

527719.0k5](/packages/lodash-php-lodash-php)[niiknow/bayes

a machine learning lib

6950.0k](/packages/niiknow-bayes)[amirezaeb/heroqr

A Powerful QR Code Management Library For PHP

9510.3k](/packages/amirezaeb-heroqr)[rapidwebltd/php-uk-bank-holidays

This library enables developers to easily retrieve UK Bank Holiday details. Holidays can be retrieved for England &amp; Wales, Scotland, and Northern Ireland. Information about these holidays can optionally be restricted by month or date.

12405.5k](/packages/rapidwebltd-php-uk-bank-holidays)[kakuilan/php-helper

k`s php helper/library/utils

314.8k3](/packages/kakuilan-php-helper)

PHPackages © 2026

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