PHPackages                             screenshotmax/sdk - 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. [API Development](/categories/api)
4. /
5. screenshotmax/sdk

ActiveLibrary[API Development](/categories/api)

screenshotmax/sdk
=================

Official PHP SDK for the ScreenshotMAX API

v1.0.0(11mo ago)02MITPHPPHP &gt;=8.0CI passing

Since Jun 3Pushed 11mo agoCompare

[ Source](https://github.com/screenshotmax/php-sdk)[ Packagist](https://packagist.org/packages/screenshotmax/sdk)[ Docs](https://screenshotmax.com)[ RSS](/packages/screenshotmax-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

ScreenshotMAX PHP SDK
=====================

[](#screenshotmax-php-sdk)

[![test](https://github.com/screenshotmax/php-sdk/actions/workflows/test.yml/badge.svg)](https://github.com/screenshotmax/php-sdk/actions/workflows/test.yml)

This is the official PHP SDK for the [ScreenshotMAX API](https://screenshotmax.com/).

It allows you to easily capture high-quality screenshots of any URL directly from your applications. The SDK handles authentication, request signing, and provides a simple interface to integrate ScreenshotMAX’s powerful screenshot services into your Python projects.

Get started in minutes. Just [sign up](https://screenshotmax.com) to receive your access and secret keys, import the client, and you’re ready to capture screenshots.”

The SDK client is synchronized with the latest [ScreenshotMAX API options](https://docs.screenshotmax.com/guides/start/introduction).

Installation
------------

[](#installation)

```
composer require screenshotmax/sdk
```

Usage
-----

[](#usage)

Use the SDK to generate signed or unsigned URLs for screenshots, PDFs, web scraping, or animated screenshot—without executing the request. Or fetch and download the result directly. You have full control over when and how each capture runs.

### Screenshot example

[](#screenshot-example)

```
use ScreenshotMax\SDK;
use ScreenshotMax\Options\ScreenshotOptions;

$sdk = new SDK('', '');

$opts = new ScreenshotOptions();
$opts->url = 'https://example.com';
$opts->format = 'png';

$sdk->screenshot->setOptions($opts);

$url = $sdk->screenshot->getUrl();
$result = $sdk->screenshot->fetch();
file_put_contents('screenshot.png', $result['data']);
```

### Web scraping example

[](#web-scraping-example)

```
