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 3w 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 52% 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

3334d 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

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[symfony/http-kernel

Provides a structured process for converting a Request into a Response

8.1k869.4M8.6k](/packages/symfony-http-kernel)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M24.8k](/packages/friendsofphp-php-cs-fixer)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.7M1.0k](/packages/phpro-grumphp)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M504](/packages/pimcore-pimcore)

PHPackages © 2026

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