PHPackages                             gkimpson/url2png-laravel - 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. [Image &amp; Media](/categories/media)
4. /
5. gkimpson/url2png-laravel

ActiveLibrary[Image &amp; Media](/categories/media)

gkimpson/url2png-laravel
========================

Laravel wrapper for url2png API for generating website thumbnails, an api key &amp; secret key is required from https://www.url2png.com/

0.0.4(3y ago)09[3 PRs](https://github.com/gkimpson/url2png-laravel/pulls)MITPHPPHP ^8.1

Since Jan 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/gkimpson/url2png-laravel)[ Packagist](https://packagist.org/packages/gkimpson/url2png-laravel)[ Docs](https://github.com/gkimpson/url2png-laravel)[ GitHub Sponsors](https://github.com/gkimpson)[ RSS](/packages/gkimpson-url2png-laravel/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (1)Dependencies (3)Versions (7)Used By (0)

Laravel wrapper for url2png API for generating website thumbnails
=================================================================

[](#laravel-wrapper-for-url2png-api-for-generating-website-thumbnails)

Laravel package for URL2PNG.com - an API for generating website thumbnails (tested on Laravel 9.x) You will need to apply for an account from  and get yourself an api key &amp; secret to generate thumbnails.

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

[](#installation)

You can install the package via composer:

```
composer require gkimpson/url2png-laravel
```

Usage
-----

[](#usage)

```
// this would ideally be in your .env just added this for here ease, apply for these keys from URL2PNG.com
$url2pngConfig = [
    'apiKey' => 'P5023B6XXXXXXX',
    'secret' => 'S5F9C03XXXXXXX',
];
$url2png = new Url2pngLaravelClass($url2pngConfig);

// These options are optional - if none are set it will use the default values
$options = array(
    'unique'    => round(time()/60/60,0);       # Limit capture to once per hour
    'viewport' 	=> '1280x1024';                 # Max 5000x5000; Default 1280x1024
    'fullpage'	=> 'false',                     # [true,false] Default: false
    'thumbnail_max_width' => 'false';           # scaled image width in pixels; Default no-scaling.
);
echo $url2png->generate('https://www.github.com', $options);
```

This will output a URL similar to this below which will be the screenshot based on the url and parameters set (if no options set it will use default settings)

```
https://api.url2png.com/v6/apikey/xxxsecretkeyxxx/png/?url=https%3A%2F%2Fwww.bbc.co.uk%2Fnews%2Fuk-politics-64434202
```

Testing
-------

[](#testing)

```
composer test --(tests to come)
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Gavin Kimpson](https://github.com/gkimpson)

License
-------

[](#license)

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

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.4% 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 ~0 days

Total

3

Last Release

1254d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b5a7660d42ecaf8c9fb1f62f40899df14138a3d7675f21864539069c1b06690?d=identicon)[gkimpson](/maintainers/gkimpson)

---

Top Contributors

[![gkimpson](https://avatars.githubusercontent.com/u/850218?v=4)](https://github.com/gkimpson "gkimpson (19 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

---

Tags

gkimpsonurl2png-laravel

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/gkimpson-url2png-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/gkimpson-url2png-laravel/health.svg)](https://phpackages.com/packages/gkimpson-url2png-laravel)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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