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.
Download screenshotfreeapi/screenshotfreeapi-php
More information about screenshotfreeapi/screenshotfreeapi-php
Files in screenshotfreeapi/screenshotfreeapi-php
Package screenshotfreeapi-php
Short Description Official PHP SDK for ScreenshotFreeAPI — screenshot-as-a-service for developers
License MIT
Homepage https://screenshotfreeapi.com
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.
- Zero production dependencies (cURL only — built into PHP)
- PHP 8.0+ with readonly properties and named arguments
- Automatic retry with exponential back-off (429 / 5xx)
- Webhook signature verification via
hash_equals - PSR-4 autoloading
Requirements
- PHP 8.0 or higher
ext-curl(enabled in most PHP installations)ext-json(enabled in most PHP installations)
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
- Documentation: https://screenshotfreeapi.com/docs
- Email: [email protected]
- GitHub Issues: https://github.com/chinkauchenna2021/screenshotfreeapi-php/issues
All versions of screenshotfreeapi-php with dependencies
ext-curl Version *
ext-json Version *