Download the PHP package scrappy-hu/laravel without Composer
On this page you can find all versions of the php package scrappy-hu/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download scrappy-hu/laravel
More information about scrappy-hu/laravel
Files in scrappy-hu/laravel
Package laravel
Short Description Official Scrappy SDK for Laravel — submit scrape jobs and verify webhooks against api.scrappy.hu.
License MIT
Homepage https://scrappy.hu
Informations about the package laravel
Scrappy SDK for Laravel
Submit web-scraping jobs and verify webhooks against api.scrappy.hu from any Laravel 9 / 10 / 11 / 12 app.
Requires PHP 8.1+ (the SDK uses readonly properties for typed
response objects, which Laravel 9 + PHP 8.0 doesn't support — bump
PHP to 8.1+ and you're fine on any Laravel 9.x).
Installation
Then in .env:
Generate the key from https://scrappy.hu/dashboard/api-keys.
That's it — the package's ScrappyServiceProvider is auto-registered
via Laravel's package discovery, and the Scrappy facade is wired up.
Submit a job
Read a job
Verify a webhook
Critical: pass the raw request body ($request->getContent()).
Re-serialising via json_encode($request->json()) reorders / spaces
keys differently and breaks the HMAC.
Test your webhook receiver
Before going live, fire a test event from the SDK to verify your endpoint is reachable + signature verification works end-to-end:
Account snapshot
Errors
Every non-2xx response throws a typed exception you can pattern-match:
Configuration
config/scrappy.php (after vendor:publish):
| Key | Env var | Default | Notes |
|---|---|---|---|
api_key |
SCRAPPY_API_KEY |
— | Required. |
timeout |
SCRAPPY_TIMEOUT |
30 |
Per-call HTTP timeout (seconds). |
webhook_secret |
SCRAPPY_WEBHOOK_SECRET |
— | Optional default secret for verify(). |
replay_window_seconds |
— | 300 |
Reject signatures older than this. |
The base URL is intentionally not configurable from Laravel — every
Laravel-driven instance points at https://api.scrappy.hu. Plain-PHP
users can still override it via the Scrappy constructor for tests
or unusual self-hosted setups.
Plain PHP usage
The package works outside Laravel too — instantiate the client directly:
Testing your own code
The SDK throws on api errors instead of returning bad data, which makes mocking straightforward:
API reference
Full reference + interactive API explorer:
- https://scrappy.hu/docs — long-form reference
- https://scrappy.hu/docs/api — interactive (Scalar)
- https://scrappy.hu/openapi.json — OpenAPI 3.1 spec (machine-readable)
Versioning
This SDK follows semver. Breaking changes go in major versions; new methods + bug fixes go in minors / patches. Tracked at https://github.com/scrappy-hu/laravel/releases.
License
MIT.
All versions of laravel with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^7.5
illuminate/contracts Version ^9.0|^10.0|^11.0|^12.0
illuminate/support Version ^9.0|^10.0|^11.0|^12.0