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 3w 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 31% 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

2549d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/125148?v=4)[Tudor Bosman](/maintainers/Tudor)[@tudor](https://github.com/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

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k108.5M866](/packages/laravel-socialite)[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.5k21.5M557](/packages/laravel-boost)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M159](/packages/spatie-laravel-health)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M127](/packages/roots-acorn)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4851.0k](/packages/sebdesign-laravel-viva-payments)

PHPackages © 2026

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