PHPackages                             jcalderonzumba/mink-phantomjs-driver - 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. jcalderonzumba/mink-phantomjs-driver

ActiveMink-driver[Testing &amp; Quality](/categories/testing)

jcalderonzumba/mink-phantomjs-driver
====================================

PhantomJS driver for Mink framework

v0.3.3(9y ago)15910.9M↓15.7%11[5 issues](https://github.com/jcalderonzumba/MinkPhantomJSDriver/issues)20MITPHPPHP &gt;=5.4

Since Jun 15Pushed 8y ago9 watchersCompare

[ Source](https://github.com/jcalderonzumba/MinkPhantomJSDriver)[ Packagist](https://packagist.org/packages/jcalderonzumba/mink-phantomjs-driver)[ Docs](http://mink.behat.org/)[ RSS](/packages/jcalderonzumba-mink-phantomjs-driver/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (10)Used By (20)

Mink PhantomJS Driver
=====================

[](#mink-phantomjs-driver)

[![Build Status](https://camo.githubusercontent.com/b017a6608ceae5a37afdf3dd9650b0f99f2a4ca667e1ecf9289d59aa989302e8/68747470733a2f2f7472617669732d63692e6f72672f6a63616c6465726f6e7a756d62612f4d696e6b5068616e746f6d4a534472697665722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jcalderonzumba/MinkPhantomJSDriver)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/55e9f0c7a41eb43ccb5e660725230436b32a5e1ce058b4b74401bd700bb3aefb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a63616c6465726f6e7a756d62612f4d696e6b5068616e746f6d4a534472697665722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/jcalderonzumba/MinkPhantomJSDriver/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/ba9567896c4b9ccc7ea1d2737895d009e443f8c9edf339e72145d3b4f4cff72d/68747470733a2f2f706f7365722e707567782e6f72672f6a63616c6465726f6e7a756d62612f6d696e6b2d7068616e746f6d6a732d6472697665722f762f737461626c65)](https://packagist.org/packages/jcalderonzumba/mink-phantomjs-driver)[![Total Downloads](https://camo.githubusercontent.com/422031191aadf07d2bd3efdab41d055c05e726efc7fd051f8bb5d186a596bc6f/68747470733a2f2f706f7365722e707567782e6f72672f6a63616c6465726f6e7a756d62612f6d696e6b2d7068616e746f6d6a732d6472697665722f646f776e6c6f616473)](https://packagist.org/packages/jcalderonzumba/mink-phantomjs-driver)

Installation &amp; Compatibility
--------------------------------

[](#installation--compatibility)

You need a working installation of [PhantomJS](http://phantomjs.org/download.html)

This driver is tested using PhantomJS 1.9.8 but it should work with 1.9.X or latest 2.0.X versions

This driver supports **PHP 5.4 or greater**, there is NO support for PHP 5.3

Use [Composer](https://getcomposer.org/) to install all required PHP dependencies:

```
$ composer require --dev behat/mink jcalderonzumba/mink-phantomjs-driver
```

How to use
----------

[](#how-to-use)

Driver specific configuration if using BEHAT

```
default:
  extensions:
    Zumba\PhantomJSExtension:
    Behat\MinkExtension:
      base_url: http://www.google.com/
      javascript_session: 'phantomjs'
      phantomjs:
        phantom_server: "http://127.0.0.1:8510/api"
        template_cache: "/tmp/jcalderonzumba/phantomjs"
```

PhantomJS browser start:

```
phantomjs --ssl-protocol=any --ignore-ssl-errors=true vendor/jcalderonzumba/gastonjs/src/Client/main.js 8510 1024 768 2>&1 >> /tmp/gastonjs.log &
```

Driver instantiation:

```
$driver = new Zumba\Mink\Driver\PhantomJSDriver('http://localhost:8510');
```

FAQ
---

[](#faq)

1. Is this a selenium based driver?:

**NO**, it has nothing to do with Selenium it's inspired on [Poltergeist](https://github.com/teampoltergeist/poltergeist)

2. What features does this driver implements?

**ALL** of the features defined in Mink DriverInterface. maximizeWindow is the only one not implemented since is a headless browser it does not make sense to implement it.

3. Do i need to modify my selenium based tests?

If you only use the standard behat driver defined methods then NO, you just have to change your default javascript driver.

Copyright
---------

[](#copyright)

Copyright (c) 2015 Juan Francisco Calderon Zumba

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity58

Moderate usage in the ecosystem

Community36

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.9% 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 ~67 days

Recently: every ~130 days

Total

9

Last Release

3455d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.3.1

v0.3.1PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/465c673d64d75547ddb2d2270db548c832e68dfce87b8e38b132ba7f9d9192eb?d=identicon)[jcalderonzumba](/maintainers/jcalderonzumba)

---

Top Contributors

[![jcalderonzumba](https://avatars.githubusercontent.com/u/2198097?v=4)](https://github.com/jcalderonzumba "jcalderonzumba (61 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (16 commits)")[![PatchRanger](https://avatars.githubusercontent.com/u/3889569?v=4)](https://github.com/PatchRanger "PatchRanger (3 commits)")[![klausi](https://avatars.githubusercontent.com/u/213229?v=4)](https://github.com/klausi "klausi (2 commits)")[![tuxayo](https://avatars.githubusercontent.com/u/2678215?v=4)](https://github.com/tuxayo "tuxayo (1 commits)")[![joelpittet](https://avatars.githubusercontent.com/u/70129?v=4)](https://github.com/joelpittet "joelpittet (1 commits)")[![mglaman](https://avatars.githubusercontent.com/u/3698644?v=4)](https://github.com/mglaman "mglaman (1 commits)")[![dawehner](https://avatars.githubusercontent.com/u/29678?v=4)](https://github.com/dawehner "dawehner (1 commits)")

---

Tags

testingbrowserjavascriptheadlessajaxphantomjs

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jcalderonzumba-mink-phantomjs-driver/health.svg)

```
[![Health](https://phpackages.com/badges/jcalderonzumba-mink-phantomjs-driver/health.svg)](https://phpackages.com/packages/jcalderonzumba-mink-phantomjs-driver)
```

###  Alternatives

[behat/mink-selenium2-driver

Selenium2 (WebDriver) driver for Mink framework

51159.1M666](/packages/behat-mink-selenium2-driver)[behat/mink-browserkit-driver

Symfony2 BrowserKit driver for Mink framework

54562.0M318](/packages/behat-mink-browserkit-driver)[silverstripe/mink-facebook-web-driver

Mink driver for facebook's webdriver

11518.5k2](/packages/silverstripe-mink-facebook-web-driver)[robertfausk/mink-panther-driver

Symfony Panther driver for Mink framework

123.4M2](/packages/robertfausk-mink-panther-driver)[playwright-php/playwright

Modern PHP library for Playwright automation: browsing, scraping, screenshots, testing, and more.

7613.0k5](/packages/playwright-php-playwright)

PHPackages © 2026

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