PHPackages                             codegyre/phantomshot - 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. codegyre/phantomshot

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

codegyre/phantomshot
====================

PHP tool to make web-shots using PhantomJS

247032JavaScript

Since Jan 22Pushed 12y ago3 watchersCompare

[ Source](https://github.com/Codegyre/phantomshot)[ Packagist](https://packagist.org/packages/codegyre/phantomshot)[ RSS](/packages/codegyre-phantomshot/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PhantomShot
===========

[](#phantomshot)

PHP tool to make web-shots using PhantomJS

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

[](#installation)

### add composer requirements

[](#add-composer-requirements)

```
"require": {
    "codegyre/phantomshot": "dev-master"
}

```

### add post-install and post-update hooks to your composer.json

[](#add-post-install-and-post-update-hooks-to-your-composerjson)

```
"scripts": {
    "post-install-cmd": [
        "Codegyre\\PhantomShot\\ComposerHook::hook"
    ],
    "post-update-cmd": [
        "Codegyre\\PhantomShot\\ComposerHook::hook"
    ]
}

```

We need this to install required dependencies through npm.

Making webshot
--------------

[](#making-webshot)

```
$webPage = new \Codegyre\PhantomShot\WebPage('http://github.com');
$webPage->getShot('/tmp/github.png');

```

Thumbnailing
------------

[](#thumbnailing)

```
$tc = new \Codegyre\PhantomShot\ThumbnailCollector('http://github.com');
$tc->createThumbnail('/destination/dir/1.png', 200, 400, ThumbnailCollector::TRANSFORM_FILL_HEIGHT_MIDDLE);
$tc->createThumbnail('/destination/dir/1.png', 350, 160, ThumbnailCollector::TRANSFORM_FILL_WIDTH_MIDDLE);

```

Make sure you have npm installed on your system

Using as service
----------------

[](#using-as-service)

You have a possibility to use phantomshot as a web service to get website screenshots

```
cd src/js && ./phantomshot-service.js --port=3000

```

It will start http server on localhost:3000. Usage:

```
http://localhost:3000/?width=1024&height=768&url=http://example.com

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.2% 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/835abc9e1a75a4c84e0565b913ce2d21d5012d7620f2e26b148ee62507ddfdd5?d=identicon)[lividgreen](/maintainers/lividgreen)

---

Top Contributors

[![lividgreen](https://avatars.githubusercontent.com/u/228193?v=4)](https://github.com/lividgreen "lividgreen (25 commits)")[![bebraw](https://avatars.githubusercontent.com/u/166921?v=4)](https://github.com/bebraw "bebraw (3 commits)")[![christiaan](https://avatars.githubusercontent.com/u/118490?v=4)](https://github.com/christiaan "christiaan (1 commits)")

### Embed Badge

![Health badge](/badges/codegyre-phantomshot/health.svg)

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

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

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