PHPackages                             saintberry/phantomjs-extension - 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. saintberry/phantomjs-extension

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

saintberry/phantomjs-extension
==============================

Adds a PhantomJs driver to Behat's Mink extension. This will automatically start and stop PhantomJs in your tests.

v1.0(11y ago)42.0k1[1 issues](https://github.com/saintberry/PhantomJs-Extension/issues)MITPHPPHP &gt;=5.3.3

Since Apr 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/saintberry/PhantomJs-Extension)[ Packagist](https://packagist.org/packages/saintberry/phantomjs-extension)[ RSS](/packages/saintberry-phantomjs-extension/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

PhantomJS-Extension
===================

[](#phantomjs-extension)

PhantomJS-Extension supplies a `phantomjs` driver to Behat's Mink Extension. This driver is a simple extension of the `selenium2` driver with a simple addition, it will start and stop PhantomJs automatically as your suites run.

Usage
-----

[](#usage)

Ensure that the extension is loaded in your `behat.yml`:

```
default:
    extensions:
		Behat\PhantomJsExtension: ~

```

The extension has no direct configuration options.

Make the PhantomJs driver your driver for `javascript_sessions` in Mink Extension config:

```
Behat\MinkExtension:
    javascript_session: phantomjs

```

With the configuration above whenever an `@javascript` step is found in your suite Mink's `selenium2` driver will use the test your application through `phantomjs` running in `webdriver mode` on port `8643`

Configuration Options
---------------------

[](#configuration-options)

The PhantomJsDriver's options are an extension of Selenium2 driver. Default config options follow:

```
extensions:
	Behat\PhantomJsExtension: ~
	Behat\MinkExtension:
		javascript_session: phantomjs
		phantomjs:
			wd_host: http://localhost:8643/wd/hub
			wd_port: 8643
			bin: /usr/local/bin/phantomjs
	        browser: firefox
	        capabilities: ~

```

To do
-----

[](#to-do)

As `Symfony/Process` is used to manage the `phantomjs` binary it's quite easy to capture `stdout` or `stderr` output. Configuration options could be added to manage log file locations where this data could be directed.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

4042d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsBehat

### Embed Badge

![Health badge](/badges/saintberry-phantomjs-extension/health.svg)

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

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k26.2M1.8k](/packages/infection-infection)[phpbench/phpbench

PHP Benchmarking Framework

2.0k13.0M627](/packages/phpbench-phpbench)[captainhook/captainhook

PHP git hook manager

1.1k6.8M370](/packages/captainhook-captainhook)[liuggio/fastest

Simple parallel testing execution... with some goodies for functional tests.

4825.6M26](/packages/liuggio-fastest)

PHPackages © 2026

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