PHPackages                             simexis/webthumb - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. simexis/webthumb

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

simexis/webthumb
================

2.0.0(7y ago)0167PHPPHP &gt;=5.6.0

Since May 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/jooorooo/webthumb)[ Packagist](https://packagist.org/packages/simexis/webthumb)[ RSS](/packages/simexis-webthumb/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

Webthumb
========

[](#webthumb)

This is a library for PHP to take a screen shot using PhantomJS.

It is easy specification of only have Exec the phantomjs command in the middle.

Webthumb Class for Laravel 5.3

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

[](#requirements)

- Laravel 5.3
- php 5.6+

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

[](#installation)

##### Step 1: Install package using [Composer](https://getcomposer.org)

[](#step-1-install-package-using-composer)

```
composer require simexis/webthumb
```

### Step 2: Laravel 5.5+

[](#step-2-laravel-55)

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

```
Simexis\Webthumb\WebthumbServiceProvider::class,
```

Usage
-----

[](#usage)

Default configuration is:

```
$cfg = [
	'local_cache_dir'	=>	public_path() . "/thumbs", //relative cache directory must exists in install directory and rwx permissions to all (777)
	'phantom_js_root'	=> __DIR__ . '/../lib/phantomjs', //Path to the root directory phantom_js

	'encoding'			=>		"png", // jpg or png
	'bwidth'			=>		"1280", // browser width
	'bheight'			=>		"1024" // browser height only for mode=screen
];
```

#### Basic example

[](#basic-example)

```
echo \Webthumb::setUrl('http://google.com')->save($save_path);
```

```
echo (new \Webthumb)
		->setURL('http://google.com')
        ->setScreenWidth('1024')
        ->setScreenHeight('768')
		->save($save_path);
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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 ~1440 days

Total

2

Last Release

2621d ago

Major Versions

1.0 → 2.0.02019-05-01

PHP version history (2 changes)1.0PHP &gt;=5.4.0

2.0.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b94e45e0fc8056daeec3bc285ca4befdbaf5064a57f29bd9d93a9459afab9a28?d=identicon)[jooorooo](/maintainers/jooorooo)

---

Tags

laravellaravel-frameworklaravel5phantomjsphp

### Embed Badge

![Health badge](/badges/simexis-webthumb/health.svg)

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

###  Alternatives

[spatie/laravel-server-side-rendering

Server side rendering JavaScript in your Laravel application

675525.6k3](/packages/spatie-laravel-server-side-rendering)[worksome/feature-flags

A package to manage feature flags in your application

11536.2k](/packages/worksome-feature-flags)

PHPackages © 2026

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