PHPackages                             dotzero/yii-phantomjs-screenshot - 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. dotzero/yii-phantomjs-screenshot

AbandonedArchivedLibrary

dotzero/yii-phantomjs-screenshot
================================

The Yii PhantomjsWebpageScreenshot extension that allows to generate screenshots of web pages on the fly

v1.0.0(10y ago)1117MITPHPPHP &gt;=5.3.0

Since Apr 30Pushed 10y ago1 watchersCompare

[ Source](https://github.com/zero-archive/yii-phantomjs-screenshot)[ Packagist](https://packagist.org/packages/dotzero/yii-phantomjs-screenshot)[ RSS](/packages/dotzero-yii-phantomjs-screenshot/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Yii Phantomjs WebpageScreenshot
===============================

[](#yii-phantomjs-webpagescreenshot)

[![Latest Stable Version](https://camo.githubusercontent.com/1d53f955f5367e6d73ff43f04d0235fcb0b86ead46fc60c0f95f9e9220917a99/68747470733a2f2f706f7365722e707567782e6f72672f646f747a65726f2f7969692d7068616e746f6d6a732d73637265656e73686f742f76657273696f6e)](https://packagist.org/packages/dotzero/yii-phantomjs-screenshot)[![License](https://camo.githubusercontent.com/0873bc8c820e74d4c28e25391423fd8d57646f9d4b250fde35242fd697627a52/68747470733a2f2f706f7365722e707567782e6f72672f646f747a65726f2f7969692d7068616e746f6d6a732d73637265656e73686f742f6c6963656e7365)](https://packagist.org/packages/dotzero/yii-phantomjs-screenshot)

The **Yii PhantomjsWebpageScreenshot** extension that allows to generate screenshots of web pages on the fly. It uses the headless webkit **PhantomJS** as a capture-engine.

**PhantomJS** is a headless **WebKit** with **JavaScript API**. It has fast and native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.

Requirements:
-------------

[](#requirements)

- [Yii Framework](https://github.com/yiisoft/yii) 1.1.14 or above
- [Composer](http://getcomposer.org/doc/)

Install
-------

[](#install)

### Via composer:

[](#via-composer)

```
$ composer require dotzero/yii-phantomjs-screenshot
```

### Add vendor path to your configuration file, attach component and set properties.

[](#add-vendor-path-to-your-configuration-file-attach-component-and-set-properties)

```
'aliases' => array(
    ...
    'vendor' => realpath(__DIR__ . '/../../vendor'),
),
'components' => array(
    ...
    'screenshot' => array(
        'class' => 'vendor.dotzero.yii-phantomjs-screenshot.EWebpageScreenshot',
        //'phantomjs' => '/bin/phantomjs',
        //'width' => 640,
        //'height' => 480,
    ),
),
```

Usage:
------

[](#usage)

```
$screenshot = Yii::app()->screenshot;
$screenshot->width = 640;
$screenshot->height = 480;

$url = 'http://www.google.com';
$outfile = Yii::getPathOfAlias('application.runtime') . '/' . uniqid() . '.png';

$screenshot->capture($url, $outfile);
```

License
-------

[](#license)

Licensed under the MIT license:

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3662d ago

### Community

Maintainers

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

---

Top Contributors

[![dotzero](https://avatars.githubusercontent.com/u/265633?v=4)](https://github.com/dotzero "dotzero (9 commits)")

---

Tags

phantomjsphpscreenshotyiiyii-frameworkscreenshotextensionyiiphantomjs

### Embed Badge

![Health badge](/badges/dotzero-yii-phantomjs-screenshot/health.svg)

```
[![Health](https://phpackages.com/badges/dotzero-yii-phantomjs-screenshot/health.svg)](https://phpackages.com/packages/dotzero-yii-phantomjs-screenshot)
```

###  Alternatives

[zhuravljov/yii2-debug

Yii debug toolbar

144501.1k4](/packages/zhuravljov-yii2-debug)[yiiext/activerecord-relation-behavior

Inspired by and put together the awesomeness of many yii extensions that aim to improve saving of related records. Comes with 100% test coverage and well structured and clean code so it can savely be used in enterprise production enviroment.

9336.5k](/packages/yiiext-activerecord-relation-behavior)[yiiext/migrate-command

This is an enhanced version of the Yii Database Migration Tool that adds module support and many more usefull features.

34173.8k4](/packages/yiiext-migrate-command)[cleantalk/yii-antispam

Anti-spam yii extension by CleanTalk with protection against spam bots and manual spam.

161.4k](/packages/cleantalk-yii-antispam)

PHPackages © 2026

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