PHPackages                             mazelab/phantomjsstarter - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. mazelab/phantomjsstarter

ActiveLibrary[HTTP &amp; Networking](/categories/http)

mazelab/phantomjsstarter
========================

Starts phantomjs sessions with webdriver support

1.3.0(9y ago)19.7k[1 issues](https://github.com/mazelab/phantomjsstarter/issues)MITPHP

Since Mar 11Pushed 9y ago5 watchersCompare

[ Source](https://github.com/mazelab/phantomjsstarter)[ Packagist](https://packagist.org/packages/mazelab/phantomjsstarter)[ RSS](/packages/mazelab-phantomjsstarter/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (3)Dependencies (2)Versions (8)Used By (0)

PhantomJS Starter
=================

[](#phantomjs-starter)

PHP helper class to start phantomjs sessions on demand. You could use it in functional test frameworks like behat/mink.

License
-------

[](#license)

The phantomjsstarter is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

Installation
------------

[](#installation)

`composer require mazelab/phantomjsstarter --dev`

```
    "require-dev": {
        "mazelab/phantomjsstarter": "^1.0"
    }

```

API
---

[](#api)

The *Starter* constructor accepts the following parameters:

- `$port` - webdriver port number which is passed to the `--webdriver` option
- `$options` - other additional options. Defaults to `--proxy-type=none --ignore-ssl-errors=true`
- `$phantomJsPath` - path to the phantomjs executable. Defaults to global `phantomjs`

Example
-------

[](#example)

A *FeatureContext* file could look like this

```
    class FeatureContext extends MinkContext
    {
        /** @BeforeSuite */
        public static function setup(SuiteEvent $event)
        {
            // this will set the port
            $phantomjs = new Mazelab\Phantomjs\Starter(8643);
            $phantomjs->up();
        }

        /** @BeforeSuite */
        public static function setup2(SuiteEvent $event)
        {
            // this will set the port and tells the starter
            // to use the binary from node_modules/.bin
            $phantomjs = new Mazelab\Phantomjs\Starter(8643, null, 'node_modules/.bin/phantomjs');
            $phantomjs->up();
        }
        ...
```

And then your config file `behat.yml`

```
    default:
        context:
            class:  'FeatureContext'
        formatter:
            name:               pretty
            parameters:
                output_path:    null
        extensions:
            Behat\MinkExtension\Extension:
                default_session: selenium2
                javascript_session: selenium2
                base_url: 'https://dev.myproject.com'
                selenium2:
                    wd_host: "http://localhost:8643/wd/hub"
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% 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 ~193 days

Recently: every ~185 days

Total

7

Last Release

3287d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0fd11561588d56528128db88764967b3ee26c59f18a7282ad18c46039ac1fca2?d=identicon)[jensklose](/maintainers/jensklose)

---

Top Contributors

[![jensklose](https://avatars.githubusercontent.com/u/1216675?v=4)](https://github.com/jensklose "jensklose (10 commits)")[![darxriggs](https://avatars.githubusercontent.com/u/16874?v=4)](https://github.com/darxriggs "darxriggs (2 commits)")[![stukalin](https://avatars.githubusercontent.com/u/9863365?v=4)](https://github.com/stukalin "stukalin (2 commits)")

### Embed Badge

![Health badge](/badges/mazelab-phantomjsstarter/health.svg)

```
[![Health](https://phpackages.com/badges/mazelab-phantomjsstarter/health.svg)](https://phpackages.com/packages/mazelab-phantomjsstarter)
```

###  Alternatives

[symfony/http-kernel

Provides a structured process for converting a Request into a Response

8.1k822.4M6.8k](/packages/symfony-http-kernel)[friendsofsymfony/http-cache

Tools to manage HTTP caching proxies with PHP

36114.7M36](/packages/friendsofsymfony-http-cache)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[bitrix24/b24phpsdk

An official PHP library for the Bitrix24 REST API

9230.2k4](/packages/bitrix24-b24phpsdk)[m6web/guzzle-http-bundle

Symfony bundle on top of Guzzle

17511.5k2](/packages/m6web-guzzle-http-bundle)[eole/sandstone

Silex RestApi with Websockets.

1115.2k1](/packages/eole-sandstone)

PHPackages © 2026

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