PHPackages                             tuhin18003/puppteer-php-bridge - 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. tuhin18003/puppteer-php-bridge

ActiveLibrary

tuhin18003/puppteer-php-bridge
==============================

A PHP Class to interact with Puppeteer and capture screenshot of a webpage

233[1 issues](https://github.com/tuhin18003/puppeteer-php-bridge/issues)PHP

Since Mar 14Pushed 7y ago2 watchersCompare

[ Source](https://github.com/tuhin18003/puppeteer-php-bridge)[ Packagist](https://packagist.org/packages/tuhin18003/puppteer-php-bridge)[ RSS](/packages/tuhin18003-puppteer-php-bridge/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Puppeteer PHP Bridge
--------------------

[](#puppeteer-php-bridge)

Web site screenshot tool based on PHP and [puppeteer](https://github.com/GoogleChrome/puppeteer)You can use it to take screenshots for testing or monitoring service

Install
-------

[](#install)

Via Composer

```
$ composer require tuhin18003/puppteer-php-bridge
```

After install the composer package go inside the jobs folder, then install the npm package

```
$ npm install
```

Usage
-----

[](#usage)

With this library you can make use of PhantomJs to screenshot a website.

Check our [demo](/demo) or read the following instructions.

Creating the object, you can either pass the url on the constructer or set it later on

```
use PuppetBridge\Capture;

try{
    $screenCapture = new Capture();
    $screenCapture->setImageType( 'png' );
    $screenCapture->setUrl( 'https://google.com' );
    $screenCapture->setTop(0);
    $screenCapture->setLeft(0);
    $screenCapture->setWidth( '600' );
    $screenCapture->setHeight( '600' );
    $screenCapture->save( 'images/testimg.png' ); // make sure images folder is writable

} catch (Exception $ex) {
    echo $ex->getMessage();
}
```

License
-------

[](#license)

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

Credits
-------

[](#credits)

- [M.Tuhin](https://codesolz.net)

Thanks to the [puppeteer](https://github.com/GoogleChrome/puppeteer "Headless browser") ([LICENSE](https://github.com/ariya/phantomjs/blob/master/LICENSE.BSD)) guys for creating their awesome WebKit scripting interface.

Special Thanks
--------------

[](#special-thanks)

- [microweber/screen](https://github.com/microweber/screen "microweber/screen")

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d3ca97c3d8c9f5c5e46763ff130c96b5b5deafc3d2c41ce78d19ad50fda3b9c?d=identicon)[tuhin18003](/maintainers/tuhin18003)

---

Top Contributors

[![tuhin18003](https://avatars.githubusercontent.com/u/3587495?v=4)](https://github.com/tuhin18003 "tuhin18003 (8 commits)")

### Embed Badge

![Health badge](/badges/tuhin18003-puppteer-php-bridge/health.svg)

```
[![Health](https://phpackages.com/badges/tuhin18003-puppteer-php-bridge/health.svg)](https://phpackages.com/packages/tuhin18003-puppteer-php-bridge)
```

PHPackages © 2026

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