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

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

dennisdigital/phantomjs-extension
=================================

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

1.2.0(8y ago)03.3k1MITPHPPHP &gt;=5.3.3

Since Apr 25Pushed 8y ago13 watchersCompare

[ Source](https://github.com/dennisinteractive/PhantomJs-Extension)[ Packagist](https://packagist.org/packages/dennisdigital/phantomjs-extension)[ RSS](/packages/dennisdigital-phantomjs-extension/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (4)Versions (6)Used By (1)

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
      curl_options:
        CURLOPT_CONNECTTIMEOUT: 60
        CURLOPT_TIMEOUT: 60
      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

31

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~479 days

Total

3

Last Release

3171d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7585951?v=4)[dennisdigital](/maintainers/dennisdigital)[@dennisdigital](https://github.com/dennisdigital)

---

Top Contributors

[![tashaharrison](https://avatars.githubusercontent.com/u/4018999?v=4)](https://github.com/tashaharrison "tashaharrison (7 commits)")[![davidgrayston](https://avatars.githubusercontent.com/u/1229335?v=4)](https://github.com/davidgrayston "davidgrayston (4 commits)")[![saintberry](https://avatars.githubusercontent.com/u/33320?v=4)](https://github.com/saintberry "saintberry (4 commits)")[![peteratdennis](https://avatars.githubusercontent.com/u/24475027?v=4)](https://github.com/peteratdennis "peteratdennis (1 commits)")

---

Tags

behat

###  Code Quality

TestsBehat

### Embed Badge

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

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

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k142.8M1.1k](/packages/brianium-paratest)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k17.0M1.1k](/packages/phpro-grumphp)[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.2k30.0M2.8k](/packages/infection-infection)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[drupal/drupal-driver

A collection of reusable Drupal drivers

6916.6M24](/packages/drupal-drupal-driver)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k20](/packages/tempest-framework)

PHPackages © 2026

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