1. Go to this page and download the library: Download scrappy-hu/laravel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
scrappy-hu / laravel example snippets
use Scrappy\Facades\Scrappy;
$job = Scrappy::jobs()->create([
'url' => 'https://example.com/products/widget',
'options' => [
'extract' => ['title', 'description', 'tables'],
],
'webhook_url' => route('scrappy.webhook'),
'metadata' => ['order_id' => $order->id],
]);
// store $job->webhookSecret somewhere keyed by $job->id —
// you'll need it to verify the inbound webhook.
DB::table('scrappy_jobs')->insert([
'id' => $job->id,
'order_id' => $order->id,
'webhook_secret' => $job->webhookSecret,
'created_at' => now(),
]);
return ['job_id' => $job->id, 'status' => $job->status];
use GuzzleHttp\Client;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Psr7\Response;
$handler = new MockHandler([
new Response(201, [], json_encode([
'job_id' => 'test-id',
'status' => 'queued',
'created_at' => '2026-05-08T10:00:00Z',
])),
]);
$scrappy = new \Scrappy\Scrappy('sk_live_test', 'https://api.scrappy.hu');
// (For full mocking inject a Guzzle client into Scrappy\Http\Client — see tests/.)
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.