PHPackages                             edno/codeception-browsermob - 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. edno/codeception-browsermob

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

edno/codeception-browsermob
===========================

Codeception extension providing BrowserMob Proxy capabilities

0.1.1(9y ago)82063[6 issues](https://github.com/edno/codeception-browsermob/issues)[1 PRs](https://github.com/edno/codeception-browsermob/pulls)MITPHPPHP ^5.5 || ^7.0

Since Jul 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/edno/codeception-browsermob)[ Packagist](https://packagist.org/packages/edno/codeception-browsermob)[ Docs](https://github.com/edno/codeception-browsermob)[ RSS](/packages/edno-codeception-browsermob/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (5)Versions (5)Used By (0)

Codeception BrowserMob Proxy
============================

[](#codeception-browsermob-proxy)

[![Latest Version](https://camo.githubusercontent.com/77d61394c5e699e8107b6f6925be3ea83db88dbc3ff23bb1e76704c5a4196174/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f65646e6f2f636f646563657074696f6e2d62726f777365726d6f622e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/edno/codeception-browsermob)[![Dependency Status](https://camo.githubusercontent.com/313b9df338b0fc7e688ab546aff2ad2dc0cd3bb423b21592a07c5476ee59641c/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3537376435663339393161616235303033343238336566322f62616467652e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/user/projects/577d5f3991aab50034283ef2)[![Build Status](https://camo.githubusercontent.com/5a6f29e946596c821379a815257a04453efd44da53c0013df4867e1f0a64b6fe/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f65646e6f2f636f646563657074696f6e2d62726f777365726d6f622e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/edno/codeception-browsermob)[![SensioLabs Insight](https://camo.githubusercontent.com/cceaa4236ccd430f5d00f248d84450623031a9a1b57a5d5dea702cb44e836926/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f38633139656437642d343065362d343163652d623963372d6662326138373039363130332e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/8c19ed7d-40e6-41ce-b9c7-fb2a87096103)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/bab58a79a09a38731e8f7fafb0c9d1bf205f400770c3832c4109817adb25ba02/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f65646e6f2f636f646563657074696f6e2d62726f777365726d6f622e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/edno/codeception-browsermob/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/ec0056b278f6fc6c5f325a9062a53ec529a0855f7ae248f3588ea0f02a69ff2b/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f65646e6f2f636f646563657074696f6e2d62726f777365726d6f622e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/edno/codeception-browsermob?branch=master)[![GitHub license](https://camo.githubusercontent.com/24299986aeccc9ecc2896a2e438a14e2b00ca5b7d5c1719e02510508e22031a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f65646e6f2f636f646563657074696f6e2d62726f777365726d6f622e7376673f7374796c653d666c61742d737175617265)](https://raw.githubusercontent.com/edno/codeception-secureshell/master/LICENSE)

The [Codeception](http://codeception.com/) module for [BrowserMob Proxy](http://bmp.lightbody.net/).

Roadmap
-------

[](#roadmap)

- **0.1**: Initial version based on library [PHPBrowserMobProxy by chartjes](https://github.com/chartjes/PHPBrowserMobProxy/) with limited support of BrowserMob Proxy legacy API and no Littleproxy support.
- 0.2: New PHP BrowserMob Proxy with full REST API support (Jetty and Littleproxy) and [proxy auto-configuration](https://en.wikipedia.org/wiki/Proxy_auto-config) feature.
- 0.3: Full integration with Codeception modules [PhpBrowser](http://codeception.com/docs/modules/PhpBrowser) and [WebDriver](http://codeception.com/docs/modules/WebDriver)

Minimum Requirements
--------------------

[](#minimum-requirements)

- Codeception 2.2
- PHP 7.2
- BrowserMob Proxy 2.0

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

[](#installation)

The module can be installed using [Composer](https://getcomposer.org).

```
$ composer require edno/codeception-browsermob
```

Be sure to enable the module as shown in [configuration](#configuration) below.

Configuration
-------------

[](#configuration)

Enabling **BrowserMob** is done in your configuration file `.yml`.

```
module:
    enabled:
        - Codeception\Extension\BrowserMob
            host: 'localhost'
            port: 8080
```

### Parameters

[](#parameters)

**BrowserMob** support following configuration parameters:

ParameterTypeDescription`host`**string**BrowserMob Proxy host`port`**integer**BrowserMob Proxy port`autostart`**boolean**Start a new proxy instance automatically \[*default = false*\]`whitelist`**array**URLs whitelisting

`code`: HTTP status code for URLs that do not match patterns

`patterns`: array of whitelisted URLs patterns

`blacklist`**array**URLs blacklisting

`code`: HTTP status code for URLs that match patterns

`patterns`: array of blacklisted URLs patterns

`limits`**array**Bandwidth limits through the proxy (see [BrowserMob Proxy REST API](https://github.com/lightbody/browsermob-proxy#rest-api))`timeouts`**array**Proxy timeouts (see [BrowserMob Proxy REST API](https://github.com/lightbody/browsermob-proxy#rest-api))`basicAuth`**array**Sets automatic basic authentication a list of domains

`domain`: domain name

`options`:HTTP authentication parameters using format *`name: value`* (see [BrowserMob Proxy REST API](https://github.com/lightbody/browsermob-proxy#rest-api))

`dns`**array**Internal proxy DNS using pairs of domain/IP to map

`domain`: domain name

`ip`: matching IP

`retry`**integer**Number of times a method will be retried \[*default = 0*\]***Example***

```
modules:
    config:
        Codeception\Extension\BrowserMob:
            host: 'localhost'
            port: 9090
            autostart: true
            whitelist:
                code: 404
                patterns:
                    - 'http://codeception.com/'
            limits:
                downstreamKbps: 12
                upstreamKbps: 12
                latency: 1
            timeouts:
                request: 10
                read: 10
                connection: 10
                dns: 10
            basicAuth:
                - domain: example.local
                  options:
                      username: myUsername
                      password: myPassword
            dns:
                - domain: example.local
                  ip: 127.0.0.1
                - domain: wikipedia.org
                  ip: 192.168.1.1
            retry: 3
```

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

[](#documentation)

The module documentation is available in the [wiki](https://github.com/edno/codeception-browsermob/wiki/Codeception-BrowserMob-Proxy-extension-Documentation).

For more information on how to use BrowserMob proxy, refer to [BrowserMob Proxy REST API documentation](https://github.com/lightbody/browsermob-proxy#rest-api).

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance5

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~3 days

Total

2

Last Release

3633d ago

### Community

Maintainers

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

---

Top Contributors

[![edno](https://avatars.githubusercontent.com/u/324670?v=4)](https://github.com/edno "edno (9 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")

---

Tags

browsermob-proxycodeceptionharhttp-archivelittleproxyproxyproxycodeceptionextensionbrowsermobhar

### Embed Badge

![Health badge](/badges/edno-codeception-browsermob/health.svg)

```
[![Health](https://phpackages.com/badges/edno-codeception-browsermob/health.svg)](https://phpackages.com/packages/edno-codeception-browsermob)
```

###  Alternatives

[lucatume/wp-browser

A set of Codeception modules to test WordPress projects.

6424.1M178](/packages/lucatume-wp-browser)[mcustiel/phiremock-codeception-extension

Codeception extension for Phiremock. Allows to stub remote services for HTTP requests.

311.1M6](/packages/mcustiel-phiremock-codeception-extension)[site5/phantoman

The Codeception extension for automatically starting and stopping PhantomJS when running tests.

481.1M17](/packages/site5-phantoman)[mcustiel/codeception-http-mock

Extension for HTTP Mock.

1424.3k1](/packages/mcustiel-codeception-http-mock)[docler-labs/codeception-slim-module

Codeception Module for Slim framework.

13206.0k1](/packages/docler-labs-codeception-slim-module)

PHPackages © 2026

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