PHPackages                             userforce/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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. userforce/scraper

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

userforce/scraper
=================

Scrape web pages and structure results.

v1.1.2(6y ago)06MITPHPPHP &gt;=7.1

Since Jun 23Pushed 6y agoCompare

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

READMEChangelogDependencies (2)Versions (4)Used By (0)

Scrape web pages and structure results using regular expressions.

[![Latest Stable Version](https://camo.githubusercontent.com/013cbc3f78ec781447b2cbf0c4aed215eb3b4c2e3624877cb5518ea099d23018/68747470733a2f2f706f7365722e707567782e6f72672f75736572666f7263652f736372617065722f76657273696f6e)](https://packagist.org/packages/userforce/scraper)[![Total Downloads](https://camo.githubusercontent.com/418fe6a2822e8c0c458496d6189a856d51c7900a970fc440754e37732e40d9cf/68747470733a2f2f706f7365722e707567782e6f72672f75736572666f7263652f736372617065722f646f776e6c6f616473)](https://packagist.org/packages/userforce/scraper)[![composer.lock](https://camo.githubusercontent.com/1b47cadf9545a558ba2237d7281654b1ff797bc865f4f45ea193fbd9fa0a50ea/68747470733a2f2f706f7365722e707567782e6f72672f75736572666f7263652f736372617065722f636f6d706f7365726c6f636b)](https://packagist.org/packages/userforce/scraper)

### Installation

[](#installation)

Require this package with Composer

```
composer require userforce/scraper
```

Register Scraper with Laravel. Open config/app.php and add `UserForce\ScraperServiceProvider` at the end of providers list

```
'providers' => [
    ...
    UserForce\Scraper\ScraperServiceProvider::class,
],
```

Then at the end of the aliases list in the same config/app.php add `UserForce\Facade\Scraper`

```
'aliases' => [
    ...
    'Scraper' => UserForce\Scraper\Facade\Scraper::class,
],
```

You can now begin using Scraper

### Usage

[](#usage)

```
use Scraper;
```

Scraper has one method `find` that accepts one parameter:

```
$result = Scraper::find($config);
```

### Example

[](#example)

Each config option must have to keys `url` and `regex`.
You can define multiple config options in a tree ( the structure will be kept ).
Also `regex` can be a string or an associative array and can't be empty. Each string will be interpreted as regular expression.

```
$config = [
    'ibmachine' => [
        'url' => 'https://ibmachine.com/machine',
        'regex' => [
            'name' => 'machine\/view\/[0-9]{1,7}" itemprop="name">\s*()?\s*(.*)\s*',
            'links' => [
                'url' => 'href=\"(http.*machine\/view\/[\d]{1,7})\"\sitemprop'
            ]
        ]
    ]
];

$result = Scraper::find($config);

$result->get();
```

#### Result

[](#result)

```
array:1 [▼
  "ibmachine" => array:2 [▼
    "name" => array:3 [▼
      0 => array:20 [▶]
      1 => array:20 [▶]
      2 => array:20 [▼
        0 => "Alesatrice TOS Whn q 13 anno 2001"
        1 => "CURVATRICE TAURING mod. DELTA 60 CNC"
        2 => "Calandre idrauliche 3 rulli"
        ...
      ]
    ]
    "links" => array:1 [▼
      "url" => array:2 [▼
        0 => array:20 [▶]
        1 => array:20 [▶]
      ]
    ]
  ]
]
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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 ~8 days

Total

3

Last Release

2504d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c2abd6e1d6d782a6436600f5a6b5620a944c1193c70a8dc4903b32e28e29b52?d=identicon)[Tudor](/maintainers/Tudor)

---

Top Contributors

[![userforce](https://avatars.githubusercontent.com/u/28368163?v=4)](https://github.com/userforce "userforce (14 commits)")

---

Tags

laravelscraper

### Embed Badge

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

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

###  Alternatives

[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[ultrono/laravel-sitemap

Sitemap generator for Laravel 11, 12 and 13

36412.6k6](/packages/ultrono-laravel-sitemap)[mischasigtermans/laravel-toon

Token-Optimized Object Notation encoder/decoder for Laravel with intelligent nested object handling

13113.1k](/packages/mischasigtermans-laravel-toon)[dniccum/nova-documentation

A Laravel Nova tool that allows you to add markdown-based documentation to your administrator's dashboard.

37116.4k](/packages/dniccum-nova-documentation)[sbsaga/toon

🧠 TOON for Laravel — a compact, human-readable, and token-efficient data format for AI prompts &amp; LLM contexts. Perfect for ChatGPT, Gemini, Claude, Mistral, and OpenAI integrations (JSON ⇄ TOON).

6115.6k](/packages/sbsaga-toon)

PHPackages © 2026

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