Official PHP client for the Screenshotbase API.
composer require everapi/screenshotbase-php<?php
require __DIR__ . '/vendor/autoload.php';
$client = new Screenshotbase\ScreenshotbaseClient('YOUR-API-KEY');
// Status
$status = $client->status();
print_r($status);
// Take screenshot
$image = $client->take([
'url' => 'https://bbc.com',
'format' => 'png',
'full_page' => true,
]);
file_put_contents('screenshot.png', $image);Documentation: https://screenshotbase.com — see the screenshotbase.com Screenshot API for full endpoint details and parameters.
MIT