Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

screenshotbase-php

Official PHP client for the Screenshotbase API.

Installation

composer require everapi/screenshotbase-php

Usage

<?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.

License

MIT

About

A php wrapper for screenshotbase.com

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages