PHPackages                             stechstudio/snapthis - 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. stechstudio/snapthis

ActiveLibrary

stechstudio/snapthis
====================

PHP SDK for SnapThis screenshot service

0.5(5y ago)02.6kMITPHPPHP ^7.2|^8.0

Since Dec 1Pushed 5y ago2 watchersCompare

[ Source](https://github.com/stechstudio/snapthis)[ Packagist](https://packagist.org/packages/stechstudio/snapthis)[ Docs](https://github.com/stechstudio/snapthis)[ RSS](/packages/stechstudio-snapthis/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

Laravel SDK for SnapThis snapshot service
=========================================

[](#laravel-sdk-for-snapthis-snapshot-service)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2222920f4f33cd489cff2229ae6d9ba330c2624f73e660b7991e78b2bd130162/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737465636873747564696f2f736e6170746869732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/stechstudio/snapthis)

SnapThis is a screenshot service that will convert an URL or HTML payload into a PNG image or PDF file.

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

[](#installation)

You can install the package via composer:

```
composer require stechstudio/snapthis
```

Store your API key in the .env file:

```
SNAPTHIS_API_KEY=[your api key]
```

Quickstart
----------

[](#quickstart)

Take a snapshot by using the `snapshot` or `pdf` methods. Return this result from a controller method to redirect to the snapshot:

```
use SnapThis;

// Will take a PNG image snapshot and redirect the user:
return SnapThis::snapshot('https://laravel.com');
```

Or add the `download` method to force the snapshot to download for your user.

```
return SnapThis::pdf('https://laravel.com')->download();
```

To get the raw binary contents use the `contents` method:

```
$contents = SnapThis::pdf('https://laravel.com')->contents();
```

You can pass in an HTML string instead of a URL:

```
SnapThis::pdf("Hello there");
```

You can also pass in a blade view, then simply chain the `snapshot` or `pdf` methods.

```
$users = User::all();

return SnapThis::view('reports.users', ['users' => $users])->pdf();
```

Options
-------

[](#options)

There are quite a few options for customizing the snapshot. Documentation coming!

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~27 days

Total

5

Last Release

1887d ago

PHP version history (2 changes)0.1PHP ^7.4|^8.0

0.4PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/315be5f111b5501a41b99a0205c9c85915335391168a0ed10316546a1a38bbd8?d=identicon)[jszobody](/maintainers/jszobody)

---

Top Contributors

[![jszobody](https://avatars.githubusercontent.com/u/203749?v=4)](https://github.com/jszobody "jszobody (15 commits)")

---

Tags

screenshotsnapthis

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stechstudio-snapthis/health.svg)

```
[![Health](https://phpackages.com/badges/stechstudio-snapthis/health.svg)](https://phpackages.com/packages/stechstudio-snapthis)
```

###  Alternatives

[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[chrome-php/chrome

Instrument headless chrome/chromium instances from PHP

2.6k4.5M64](/packages/chrome-php-chrome)[sensiolabs/gotenberg-bundle

A Symfony bundle that provides seamless integration with Gotenberg for generating PDFs and screenshots from various sources (HTML, Markdown, Office documents, URLs) with a clean, builder-based API.

210210.4k2](/packages/sensiolabs-gotenberg-bundle)[lakshmaji/thumbnail

Thumbnails for videos

108122.2k](/packages/lakshmaji-thumbnail)[genesis/behat-fail-aid

Get more out of your test suite by getting it to work with you when tests fail. Screenshots and more. Works with Goutte and MinkExtension.

281.5M17](/packages/genesis-behat-fail-aid)[its404/php-puppeteer

PHP Wrapper for Google Chrome Puppeteer

30303.1k1](/packages/its404-php-puppeteer)

PHPackages © 2026

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