PHPackages                             guikingone/panther-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. guikingone/panther-extension

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

guikingone/panther-extension
============================

Panther extension for Mink

0.4.1(6y ago)232.2k1[1 issues](https://github.com/Guikingone/PantherExtension/issues)[1 PRs](https://github.com/Guikingone/PantherExtension/pulls)MITPHPPHP &gt;=7.1CI failing

Since Apr 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Guikingone/PantherExtension)[ Packagist](https://packagist.org/packages/guikingone/panther-extension)[ RSS](/packages/guikingone-panther-extension/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (7)Dependencies (9)Versions (9)Used By (0)

Panther Mink Extension
======================

[](#panther-mink-extension)

Mink extension for controlling `Chrome | Firefox | Selenium` thanks to [Symfony Panther](https://github.com/symfony/panther).

Foreword:
---------

[](#foreword)

This extension is experimental (even if stable at 95%), some features may be missing.

Installation:
-------------

[](#installation)

First, you need to install [Symfony Panther](https://github.com/symfony/panther) and it's required dependencies, then:

```
composer require guikingone/panther-extension
```

Usage:
------

[](#usage)

```
default:
  suites:
    default:
      contexts:
        - PantherExtension\Context\PantherContext:
        - PantherExtension\Context\WaitContext:
        # Your contexts

  extensions:
    PantherExtension\Extension\PantherExtension: ~
    Behat\MinkExtension:
      browser_name: chrome
      base_url: http://localhost
      sessions:
        default:
          panther:
            driver: 'chrome' # Or 'firefox', 'selenium', 'chrome' is the default value
```

**`WaitContext` has been introduced in 0.4**

If you need to use `Selenium`, just adapt the session configuration:

```
# ...

  extensions:
    PantherExtension\Extension\PantherExtension: ~
    Behat\MinkExtension:
      browser_name: chrome
      base_url: http://localhost
      sessions:
        default:
          panther:
            driver: 'selenium'
            selenium:
              hub_url: 'http://127.0.0.1:4444/wd/hub'
```

Here's a simple example using a POC project which call [API-Platform website](https://api-platform.com/)

```
Feature:
  As a newbie in API-Platform, I want to document myself in many features

  Scenario: I should be able to see the main documentation
    Given I am on "/"
    And I should see "REST and GraphQL framework to build modern API-driven projects"

  Scenario: I should be able to see the main documentation
    Given I am on "/"
    And I go to "/docs/distribution/"
    Then I should see "API Platform is the most advanced API platform, in any framework or language."

  Scenario: I should be able to document myself about GraphQL support
    Given I am on "/"
    And I follow "Get started"
    When I follow "Adding GraphQL Support"
    Then I should be on "/docs/distribution/#adding-graphql-support"
    Then I should see "You now have a GraphQL API!"

  Scenario: I should be able to document myself about GraphQL support thanks to the search field
    Given I am on "/"
    When I fill in "SEARCH..." with "GraphQL"
    And I wait for "#algolia-autocomplete-listbox-0"
    Then I should see "Documentation"
    And I should see "Search by"
    And I should see "Enabling GraphQL"

  Scenario: I should be able to test the demo
    Given I am on "/"
    And I follow "Demo"
    Then I should be on "https://demo-client.api-platform.com/"
    When I follow "API"
    Then I should be on "https://demo.api-platform.com/"

  Scenario: I should be able to test the demo
    Given I am on "/"
    And I follow "Community"
    And I create a new client "test" using the "chrome" driver
    Then I switch to client "test"
    And I go to "/"
    Then I should see "REST and GraphQL framework to build modern API-driven projects"
    Then I remove the client "test"
    Then I should see "API Platform's community"

6 scenarios (6 passed)
29 steps (29 passed)
0m28.61s (20.63Mb)
```

Documentation
-------------

[](#documentation)

The full documentation can be found [here](/doc)

CI usage
--------

[](#ci-usage)

Please refer to [Symfony Panther](https://github.com/symfony/panther) documentation about using it in CI environments.

Development
-----------

[](#development)

The project can be launched using:

```
make boot
```

Every test can be launched using:

```
make tests
```

For more commands or help, please use:

```
make
```

Contributing
------------

[](#contributing)

Just fork this repo and submit a new PR!

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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 ~1 days

Total

7

Last Release

2287d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1ea408dc1a7f312337f13b3a6f01446ccb69e9d53d801abbda36bf38d1f640b?d=identicon)[Guillaume Loulier](/maintainers/Guillaume%20Loulier)

---

Top Contributors

[![Guikingone](https://avatars.githubusercontent.com/u/13744329?v=4)](https://github.com/Guikingone "Guikingone (11 commits)")[![vincentchalamon](https://avatars.githubusercontent.com/u/407859?v=4)](https://github.com/vincentchalamon "vincentchalamon (1 commits)")

---

Tags

behatchromeextensionfirefoxminkpantherphpseleniumsymfonybrowserwebMinkdriverextensionPanther

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/guikingone-panther-extension/health.svg)

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

###  Alternatives

[drupal/drupal-extension

Drupal extension for Behat

22115.8M179](/packages/drupal-drupal-extension)[drevops/behat-steps

Collection of steps for Behat

27451.5k5](/packages/drevops-behat-steps)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k51](/packages/civicrm-civicrm-core)[friends-of-behat/mink-extension

Mink extension for Behat

14037.5M633](/packages/friends-of-behat-mink-extension)[robertfausk/behat-panther-extension

Symfony Panther extension for Behat

342.1M130](/packages/robertfausk-behat-panther-extension)[robertfausk/mink-panther-driver

Symfony Panther driver for Mink framework

123.8M3](/packages/robertfausk-mink-panther-driver)

PHPackages © 2026

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