PHPackages                             yebto/screenshot-api - 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. yebto/screenshot-api

ActiveLibrary[API Development](/categories/api)

yebto/screenshot-api
====================

PHP SDK for the YEB Screenshot API. Capture website screenshots, PDFs, videos, OCR and more.

00PHP

Since Mar 6Pushed 2mo agoCompare

[ Source](https://github.com/yebto/screenshot-api)[ Packagist](https://packagist.org/packages/yebto/screenshot-api)[ RSS](/packages/yebto-screenshot-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

YEB ScreenshotAPI
=================

[](#yeb-screenshotapi)

PHP SDK for the YEB Screenshot API. Capture website screenshots, PDFs, videos, OCR and more.

Works standalone (plain PHP) or with Laravel (Facade + auto-discovery).

Requirements
------------

[](#requirements)

- PHP 8.1+
- cURL extension
- [YEB API Key](https://yeb.to) (free tier available)

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

[](#installation)

```
composer require yebto/screenshot-api
```

Standalone Usage
----------------

[](#standalone-usage)

```
use Yebto\ScreenshotAPI\ScreenshotAPI;

$api = new ScreenshotAPI(['key' => 'your-api-key']);
$result = $api->capture('example');
```

Laravel Usage
-------------

[](#laravel-usage)

Add your API key to `.env`:

```
YEB_KEY_ID=your-api-key

```

Use via Facade:

```
use ScreenshotAPI;

$result = ScreenshotAPI::capture('example');
```

Or via dependency injection:

```
use Yebto\ScreenshotAPI\ScreenshotAPI;

public function handle(ScreenshotAPI $api)
{
    $result = $api->capture('example');
}
```

### Publish Config

[](#publish-config)

```
php artisan vendor:publish --tag=yebto-screenshot-config
```

Available Methods
-----------------

[](#available-methods)

MethodDescription`capture($url)`Capture a screenshot of a URL`captureHtml($html)`Capture a screenshot from HTML content`capturePdf($url)`Capture a PDF of a URL`captureVideo($url)`Capture a video recording of a URL`bulk($urls)`Capture screenshots of multiple URLs`bulkStatus($job_id)`Check bulk capture job status`scheduleCreate($url)`Create a scheduled screenshot`scheduleUpdate($schedule_id)`Update a scheduled screenshot`scheduleDelete($schedule_id)`Delete a scheduled screenshot`scheduleList()`List all scheduled screenshots`scheduleRun($schedule_id)`Run a scheduled screenshot now`diff($url)`Create a visual diff between screenshots`diffStatus($job_id)`Check diff job status`status($job_id)`Check screenshot job status`download($job_id)`Download a captured screenshot`metrics($url)`Get page performance metrics`ocr($url)`Extract text from a screenshot via OCR`extractHtml($url)`Extract rendered HTML from a URL`extractText($url)`Extract visible text from a URL`devices()`List available device presetsAll methods accept an optional `$extra` array parameter for additional API options.

Error Handling
--------------

[](#error-handling)

```
use Yebto\ApiClient\Exceptions\ApiException;
use Yebto\ApiClient\Exceptions\AuthenticationException;
use Yebto\ApiClient\Exceptions\RateLimitException;

try {
    $result = $api->capture('example');
} catch (AuthenticationException $e) {
    // Missing or invalid API key (401)
} catch (RateLimitException $e) {
    // Too many requests (429)
} catch (ApiException $e) {
    echo $e->getMessage();
    echo $e->getHttpCode();
}
```

Free API Access
---------------

[](#free-api-access)

Register at [yeb.to](https://yeb.to) with Google OAuth to get a free API key.

Support
-------

[](#support)

- API Documentation:
- Email:
- Issues: [GitHub Issues](https://github.com/yebto/screenshot-api/issues)

License
-------

[](#license)

MIT - NETOX Ltd.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance58

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/57d7e2ce619fb0a25c0b8ebf53ab60f9aba259cbb926f697dc0cb6b5349dea85?d=identicon)[yebto](/maintainers/yebto)

---

Top Contributors

[![yebto](https://avatars.githubusercontent.com/u/217711937?v=4)](https://github.com/yebto "yebto (2 commits)")

---

Tags

apilaravelphpsdkyeb

### Embed Badge

![Health badge](/badges/yebto-screenshot-api/health.svg)

```
[![Health](https://phpackages.com/badges/yebto-screenshot-api/health.svg)](https://phpackages.com/packages/yebto-screenshot-api)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M477](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
