PHPackages                             ciaranmcnulty/behat-localwebserverextension - 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. ciaranmcnulty/behat-localwebserverextension

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

ciaranmcnulty/behat-localwebserverextension
===========================================

Extension for behat users who forget to start their webserver

1.1.3(9y ago)1427.2k5[1 issues](https://github.com/ciaranmcnulty/behat-localwebserverextension/issues)[2 PRs](https://github.com/ciaranmcnulty/behat-localwebserverextension/pulls)7MITPHPPHP ^5.4||~7.0

Since Dec 21Pushed 6y ago2 watchersCompare

[ Source](https://github.com/ciaranmcnulty/behat-localwebserverextension)[ Packagist](https://packagist.org/packages/ciaranmcnulty/behat-localwebserverextension)[ Docs](http://github.com/ciaranmcnulty/behat-localwebserverextension)[ RSS](/packages/ciaranmcnulty-behat-localwebserverextension/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (6)Versions (8)Used By (7)

Behat Local Webserver Extension
===============================

[](#behat-local-webserver-extension)

A trivial extension for people who forget to start their webserver

[![Build Status](https://camo.githubusercontent.com/127df5aeaf82eb1635030431c74c80453fe61065b3b0b53975ca254e6c1b660c/68747470733a2f2f7472617669732d63692e6f72672f63696172616e6d636e756c74792f62656861742d6c6f63616c776562736572766572657874656e73696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ciaranmcnulty/behat-localwebserverextension)

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

[](#installation)

Require in composer

```
composer require ciaranmcnulty/behat-localwebserverextension --dev

```

Usage
-----

[](#usage)

Add to your `behat.yml`:

```
default:
  extensions:
    Cjm\Behat\LocalWebserverExtension: ~
```

Run your suite, and your web examples should pass - the internal PHP webserver is started at suite start and exited at suite end.

Advanced Configuration
----------------------

[](#advanced-configuration)

Available configuration options:

```
default:
  extensions:
    Cjm\Behat\LocalWebserverExtension:
        host : 192.168.1.1   # defaults to 'localhost'
        port : 80            # defaults to '8000'
        docroot: /wwroot     # defaults to '%paths.base%/web'
        router: router.php   # defaults to 'null'
        suites: [ web, ui ]  # defaults to (all suites)
```

If your behat config is elsewhere than in your root directory (for example `app/behat.yml` you need to customize the docroot to the right path. In our example it would be ` docroot: '%paths.base%/../web'`

Usage with MinkExtension
------------------------

[](#usage-with-minkextension)

When MinkExtension is used, default host and port will be read from Mink's `base_url` setting , but you can still override if required.

```
default:
  extensions:
    Behat\MinkExtension:
      base_url:  'http://dev.local:9001'
      sessions:
        default:
          goutte: ~
    Cjm\Behat\LocalWebserverExtension: ~
```

Limitations
-----------

[](#limitations)

To do:

- Only turn webserver on for certain contexts
- Support symfony app console
- Support custom server startup / stop commands

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~87 days

Recently: every ~130 days

Total

7

Last Release

3637d ago

PHP version history (4 changes)1.0.0-betaPHP ~5.4

1.1.1PHP ~5.4,~7.0

1.1.2PHP ~5.4||~7.0

1.1.3PHP ^5.4||~7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/e7c4612e19ba73b517d8c3e15890af6687f8a206eb56676c1714209534378429?d=identicon)[ciaranmcnulty](/maintainers/ciaranmcnulty)

---

Top Contributors

[![ciaranmcnulty](https://avatars.githubusercontent.com/u/237866?v=4)](https://github.com/ciaranmcnulty "ciaranmcnulty (36 commits)")[![debo](https://avatars.githubusercontent.com/u/493257?v=4)](https://github.com/debo "debo (7 commits)")[![matthiasnoback](https://avatars.githubusercontent.com/u/1193078?v=4)](https://github.com/matthiasnoback "matthiasnoback (1 commits)")[![tristanbes](https://avatars.githubusercontent.com/u/346010?v=4)](https://github.com/tristanbes "tristanbes (1 commits)")

---

Tags

BDDTDDBehat

### Embed Badge

![Health badge](/badges/ciaranmcnulty-behat-localwebserverextension/health.svg)

```
[![Health](https://phpackages.com/badges/ciaranmcnulty-behat-localwebserverextension/health.svg)](https://phpackages.com/packages/ciaranmcnulty-behat-localwebserverextension)
```

###  Alternatives

[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[polishsymfonycommunity/symfony-mocker-container

Provides base Symfony dependency injection container enabling service mocking.

1468.0M237](/packages/polishsymfonycommunity-symfony-mocker-container)[bex/behat-extension-driver-locator

Driver locator tool for behat extensions

385.2M4](/packages/bex-behat-extension-driver-locator)[ciaranmcnulty/behat-stepthroughextension

Extension for behat to help debug failing scenarios

601.6M5](/packages/ciaranmcnulty-behat-stepthroughextension)[bex/behat-step-time-logger

Extension for behat to help find slow scenario steps by logging the step times

261.5M1](/packages/bex-behat-step-time-logger)[ezsystems/behat-screenshot-image-driver-cloudinary

Cloudinary image driver for bex/behat-screenshot behat extension

28992.5k16](/packages/ezsystems-behat-screenshot-image-driver-cloudinary)

PHPackages © 2026

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