PHPackages                             bazavlukd/php-phantomjs - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. bazavlukd/php-phantomjs

ActiveLibrary[Testing &amp; Quality](/categories/testing)

bazavlukd/php-phantomjs
=======================

A PHP wrapper for loading pages through PhantomJS - Forked version with ServiceContainer error fix for better Laravel / Lumen support

v4.6.0(9y ago)012MITPHPPHP &gt;=5.3.0

Since Nov 13Pushed 8y agoCompare

[ Source](https://github.com/DmitriyBazavluk/php-phantomjs)[ Packagist](https://packagist.org/packages/bazavlukd/php-phantomjs)[ RSS](/packages/bazavlukd-php-phantomjs/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (9)Versions (26)Used By (0)

Fork
====

[](#fork)

This fork is created to improve compatibility with Laravel / Lumen and should be fixed and merged.

PHP PhantomJS
=============

[](#php-phantomjs)

PHP PhantomJS is a flexible PHP library to load pages through the PhantomJS headless browser and return the page response. It is handy for testing websites that demand javascript support and also supports screen captures.

[Full Documentation](http://jonnnnyw.github.io/php-phantomjs/)

[![Total Downloads](https://camo.githubusercontent.com/fb1eb30724e69589dc5295ed510e29b1b098476323880e760c017f636f07d0c8/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6e6e79772f7068702d7068616e746f6d6a732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/jonnyw/php-phantomjs) [![Latest Stable Version](https://camo.githubusercontent.com/cdf2de568327a395efed0e724e156029a1dfcb83527ef669a3bea27e0a2c9bbd/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6e6e79772f7068702d7068616e746f6d6a732f762f737461626c652e706e67)](https://packagist.org/packages/jonnyw/php-phantomjs) [![Build Status](https://camo.githubusercontent.com/31cff8efceee8e17a29e97ad4e874ae4768297b720d4afad55c050ff8326c32f/68747470733a2f2f7472617669732d63692e6f72672f6a6f6e6e6e6e79772f7068702d7068616e746f6d6a732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jonnnnyw/php-phantomjs) [![Scrutinizer Quality Score](https://camo.githubusercontent.com/bd3f8c8121d918aa8997535d1b967dcdb8b81021140a057351f834da86b1c5d4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f6e6e6e6e79772f7068702d7068616e746f6d6a732f6261646765732f7175616c6974792d73636f72652e706e673f733d36333164333266613166626239333030656238346239623532373032633766666561633034366131)](https://scrutinizer-ci.com/g/jonnnnyw/php-phantomjs/) [![Code Coverage](https://camo.githubusercontent.com/94da59ebf0d2f4ef32d88cf294c1a2a0e52a27487f8c64ffa384518d0e3ce467/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f6e6e6e6e79772f7068702d7068616e746f6d6a732f6261646765732f636f7665726167652e706e673f733d38393362353939376461343534343865333239383362383536386133393633306230623264393162)](https://scrutinizer-ci.com/g/jonnnnyw/php-phantomjs/)

Feature List
------------

[](#feature-list)

- Load webpages through the PhantomJS headless browser
- View detailed response data including page content, headers, status code etc.
- Handle redirects
- View javascript console errors
- View detailed PhantomJS debug information
- Save screen captures to local disk
- Output web pages to PDF document
- Set viewport size
- Set fixed header and footer for PDF output
- Define screen capture x, y, width and height parameters
- Delay page rendering for a specified time
- Delay page rendering until page resources are fully loaded
- Execute PhantomJS with command line options
- Easily build and run custom PhantomJS scripts

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 82.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.

###  Release Activity

Cadence

Every ~52 days

Recently: every ~89 days

Total

25

Last Release

3309d ago

Major Versions

v1.0.0 → v2.0.02013-11-13

v2.0.1 → v3.0.02014-07-23

v3.1.5 → 4.0.x-dev2015-03-22

v4.5.1 → 5.0.x-dev2017-04-22

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.0

5.0.x-devPHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/80b433a3d3e219020cb08951fcb3ab5e841c1ddf72529092f4a287e720f9cdb9?d=identicon)[DmitriyBazavluk](/maintainers/DmitriyBazavluk)

---

Top Contributors

[![jonnnnyw](https://avatars.githubusercontent.com/u/5824499?v=4)](https://github.com/jonnnnyw "jonnnnyw (106 commits)")[![andriuspetrauskis](https://avatars.githubusercontent.com/u/2466985?v=4)](https://github.com/andriuspetrauskis "andriuspetrauskis (5 commits)")[![tuchk4](https://avatars.githubusercontent.com/u/5140611?v=4)](https://github.com/tuchk4 "tuchk4 (4 commits)")[![amitaymolko](https://avatars.githubusercontent.com/u/1846494?v=4)](https://github.com/amitaymolko "amitaymolko (2 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")[![tlaverdure](https://avatars.githubusercontent.com/u/1731025?v=4)](https://github.com/tlaverdure "tlaverdure (2 commits)")[![bazavlukd](https://avatars.githubusercontent.com/u/36728446?v=4)](https://github.com/bazavlukd "bazavlukd (1 commits)")[![JonnnyW](https://avatars.githubusercontent.com/u/1504674?v=4)](https://github.com/JonnnyW "JonnnyW (1 commits)")[![mattolde](https://avatars.githubusercontent.com/u/599655?v=4)](https://github.com/mattolde "mattolde (1 commits)")[![mmiermans](https://avatars.githubusercontent.com/u/1547251?v=4)](https://github.com/mmiermans "mmiermans (1 commits)")[![psrpinto](https://avatars.githubusercontent.com/u/550401?v=4)](https://github.com/psrpinto "psrpinto (1 commits)")[![ares333](https://avatars.githubusercontent.com/u/7401387?v=4)](https://github.com/ares333 "ares333 (1 commits)")[![j03k64](https://avatars.githubusercontent.com/u/801500?v=4)](https://github.com/j03k64 "j03k64 (1 commits)")[![jakoch](https://avatars.githubusercontent.com/u/85608?v=4)](https://github.com/jakoch "jakoch (1 commits)")

---

Tags

testingphantomjsHeadless Browser

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bazavlukd-php-phantomjs/health.svg)

```
[![Health](https://phpackages.com/badges/bazavlukd-php-phantomjs/health.svg)](https://phpackages.com/packages/bazavlukd-php-phantomjs)
```

PHPackages © 2026

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