Download the PHP package screenshotfreeapi/screenshotfreeapi-php without Composer

On this page you can find all versions of the php package screenshotfreeapi/screenshotfreeapi-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package screenshotfreeapi-php

ScreenshotFreeAPI PHP SDK

Official PHP SDK for ScreenshotFreeAPI — screenshot-as-a-service for developers.

Capture pixel-perfect screenshots of any website, HTML string, or mobile app store listing with a single function call. No headless browser setup required.


Requirements


Installation


Quick Start


Authentication

API Key (screenshots, jobs, integrations)

Every request is authenticated with your API key via the Authorization: Bearer header. Pass the key to the constructor:

Management JWT (billing, workspaces, monitors)

Billing, workspace, and monitor endpoints require a short-lived JWT obtained by trading your email and password:


Screenshot Types

Web Screenshot

Capture any public URL. Supports AI-targeted cropping, custom dimensions, full-page capture, PDF output, and more.

Mobile App Screenshot

Fetch screenshots from the App Store and/or Google Play, or emulate a device.

HTML String Rendering

Render a raw HTML string (email template, report card, certificate, etc.) to a screenshot.


Convenience Method

$client->capture() is a shorthand for webAndWait():


Manual Polling

For fine-grained control, submit a job and poll it yourself:

Polling with progress callback


Error Handling

All exceptions extend ScreenshotFreeAPI\Exceptions\ScreenshotFreeAPIException which extends \RuntimeException.


Billing


Team Workspaces


App Monitors


Zapier Integration


Webhooks

When a screenshot job completes (or fails) the server can POST a signed event to your webhookUrl. Always verify the signature before processing.

Plain PHP

Laravel Middleware

Register in bootstrap/app.php (Laravel 11+) or app/Http/Kernel.php:


Configuration

Retry behaviour

The SDK automatically retries failed requests on HTTP 429 and 5xx responses using exponential back-off:

Attempt Delay
1st retry 1 s
2nd retry 2 s
3rd retry 4 s

For HTTP 429 responses the Retry-After header value is used when present.


Health Check


Running Tests


License

MIT — see LICENSE for details.


Support


All versions of screenshotfreeapi-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-curl Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package screenshotfreeapi/screenshotfreeapi-php contains the following files

Loading the files please wait ...