PHPackages                             nicolasguilloux/wiremock-bundle - 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. nicolasguilloux/wiremock-bundle

AbandonedArchivedSymfony-bundle[HTTP &amp; Networking](/categories/http)

nicolasguilloux/wiremock-bundle
===============================

A Symfony bundle to quickly mock Http Clients using Wiremock.

v1.0.0(1y ago)11.5kMITPHPPHP ^8.0

Since Jul 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/NicolasGuilloux/wiremock-bundle)[ Packagist](https://packagist.org/packages/nicolasguilloux/wiremock-bundle)[ RSS](/packages/nicolasguilloux-wiremock-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (17)Versions (2)Used By (0)

[![wiremock bundle](https://camo.githubusercontent.com/cb37bea27cd26158be79d87cca04c61039714178e22f5631b02f45e93adc8a3d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4e69636f6c61734775696c6c6f75782f776972656d6f636b2d62756e646c65)](https://packagist.org/packages/NicolasGuilloux/wiremock-bundle)[![badge](https://github.com/NicolasGuilloux/wiremock-bundle/actions/workflows/tests.yml/badge.svg)](https://github.com/NicolasGuilloux/wiremock-bundle/actions)[![badge](https://camo.githubusercontent.com/c3a1c6c00846b0a07ff2287f141a2e8b615a5e85cbe2866f908713df67f55134/68747470733a2f2f636f6465636f762e696f2f67682f4e69636f6c61734775696c6c6f75782f776972656d6f636b2d62756e646c652f67726170682f62616467652e7376673f746f6b656e3d4b354d46363445395152)](https://codecov.io/gh/NicolasGuilloux/wiremock-bundle)[![maintainability](https://camo.githubusercontent.com/437af0eed0e54dba9648af556df575ddd4f9b2dc0b7ab35630bfdd8477fd13cc/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f30313039336664333864316165306335616261362f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/NicolasGuilloux/wiremock-bundle/maintainability)[![contributions welcome brightgreen](https://camo.githubusercontent.com/9e93e892d0685e1bf7a1d0bd7c8410d6ecf2086a0a7b48dd58a6b96fa556ea2a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/NicolasGuilloux/wiremock-bundle/issues)[![license MIT blue](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)
[![PHP 8](https://camo.githubusercontent.com/f2ff7d62bf0c2700f183b977ccb28f19f64d28a5c86c11ea90fd3bbd1a43f259/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e302532422d79656c6c6f77)](https://camo.githubusercontent.com/f2ff7d62bf0c2700f183b977ccb28f19f64d28a5c86c11ea90fd3bbd1a43f259/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e302532422d79656c6c6f77)[![PHP 8](https://camo.githubusercontent.com/836137282cd72e16b07f6f9e27028c0947bbdc7823ea19e7022199fc34e00a46/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532422d79656c6c6f77)](https://camo.githubusercontent.com/836137282cd72e16b07f6f9e27028c0947bbdc7823ea19e7022199fc34e00a46/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532422d79656c6c6f77)[![PHP 8](https://camo.githubusercontent.com/29e7e13810c668edcee58a7cabfc1620c7b8549443673bd971647f623d5835f3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d79656c6c6f77)](https://camo.githubusercontent.com/29e7e13810c668edcee58a7cabfc1620c7b8549443673bd971647f623d5835f3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322532422d79656c6c6f77)[![PHP 8](https://camo.githubusercontent.com/3e5cd16457b62c495273f6bd7ece0c39b7a2be7e83dee420762e344984861056/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332532422d79656c6c6f77)](https://camo.githubusercontent.com/3e5cd16457b62c495273f6bd7ece0c39b7a2be7e83dee420762e344984861056/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332532422d79656c6c6f77)
[![Symfony 5%2B black](https://camo.githubusercontent.com/0b1128137c1357779f86a0d8f2734fbb557fd154175959c66c0174bbf9e855e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d352532422d626c61636b)](https://camo.githubusercontent.com/0b1128137c1357779f86a0d8f2734fbb557fd154175959c66c0174bbf9e855e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d352532422d626c61636b)[![Symfony 6%2B black](https://camo.githubusercontent.com/7f5d356841052762e1573f00c02de6c45918b82c5b2aaba4b65aba36258113e4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d362532422d626c61636b)](https://camo.githubusercontent.com/7f5d356841052762e1573f00c02de6c45918b82c5b2aaba4b65aba36258113e4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d362532422d626c61636b)[![Symfony 7%2B black](https://camo.githubusercontent.com/e89716eafe90954a7a13f607b2912433d1560cda192e918e0714bc06ea079721/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d372532422d626c61636b)](https://camo.githubusercontent.com/e89716eafe90954a7a13f607b2912433d1560cda192e918e0714bc06ea079721/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d372532422d626c61636b)

A Symfony bundle to quickly mock Http Clients using Wiremock. The way it works is by decorating the Symfony HttpClient. It checks if Wiremock has a stub for the request and if it does, it returns the stubbed response. If not, it forwards the request to the original http client as usual.

Table of content
----------------

[](#table-of-content)

- [1. Installation](#installation)
- [2. Documentation](#documentation)
    - [2.1. Configuration](#configuration)
    - [2.2. Profiler](#profiler)
- [3. Versioning](#versioning)
- [4. Contributing](#contributing)
- [5. License](#license)
- [6. Hacking](#hacking)

1. Installation
---------------

[](#1-installation)

Execute the composer command to install the bundle:

```
composer require nicolasguilloux/wiremock-bundle --dev
```

2. Documentation
----------------

[](#2-documentation)

### 2.1. Configuration

[](#21-configuration)

Here is an example of a configuration with the Wiremock http client:

```
framework:
    http_client:
        scoped_clients:
            wiremock.client:
                base_uri: 'http://localhost:8080'

wiremock:
    # Set the Wiremock http client (default: wiremock.client)
    # http_client: 'wiremock.client'

    # Removes the Wiremock http client from the HttpClient profiler page (default: false)
    # remove_from_http_client_profiler: true

    # Decorates by default all clients except the following ones (default: [])
    # blacklist_clients: []

    # Decorates only the following http client (default: [])
    # whitelist_clients: []
```

### 2.2. Profiler

[](#22-profiler)

A new tab is available in the Symfony profiler to see the Wiremock http calls. This might be helpful to see if a request has been used to stub a response or not.

3. Versioning
-------------

[](#3-versioning)

wiremock-bundle follows [semantic versioning](https://semver.org/). In short the scheme is MAJOR.MINOR.PATCH where 1. MAJOR is bumped when there is a breaking change, 2. MINOR is bumped when a new feature is added in a backward-compatible way, 3. PATCH is bumped when a bug is fixed in a backward-compatible way.

Versions bellow 1.0.0 are considered experimental and breaking changes may occur at any time.

4. Contributing
---------------

[](#4-contributing)

Contributions are welcomed! There are many ways to contribute, and we appreciate all of them. Here are some of the major ones:

- [Bug Reports](https://github.com/NicolasGuilloux/wiremock-bundle/issues): While we strive for quality software, bugs can happen, and we can’t fix issues we’re not aware of. So please report even if you’re not sure about it or just want to ask a question. If anything the issue might indicate that the documentation can still be improved!
- [Feature Request](https://github.com/NicolasGuilloux/wiremock-bundle/issues): You have a use case not covered by the current api? Want to suggest a change or add something? We’d be glad to read about it and start a discussion to try to find the best possible solution.
- [Pull Request](https://github.com/NicolasGuilloux/wiremock-bundle/pulls): Want to contribute code or documentation? We’d love that! If you need help to get started, GitHub as [documentation](https://help.github.com/articles/about-pull-requests/) on pull requests. We use the ["fork and pull model"](https://help.github.com/articles/about-collaborative-development-models/) were contributors push changes to their personal fork and then create pull requests to the main repository. Please make your pull requests against the `master` branch.

As a reminder, all contributors are expected to follow our [Code of Conduct](./CODE_OF_CONDUCT.md).

5. License
----------

[](#5-license)

wiremock-bundle is distributed under the terms of the MIT license.

See [LICENSE](./LICENSE) for details.

6. Hacking
----------

[](#6-hacking)

[Nix](https://nixos.org/manual/nix/stable/introduction) and [devenv](https://devenv.sh/) are here to help you install the software dependencies.

With the two tools installed, you can simply enter a working shell: `devenv shell`.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

653d ago

### Community

Maintainers

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

---

Top Contributors

[![NicolasGuilloux](https://avatars.githubusercontent.com/u/4090627?v=4)](https://github.com/NicolasGuilloux "NicolasGuilloux (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nicolasguilloux-wiremock-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/nicolasguilloux-wiremock-bundle/health.svg)](https://phpackages.com/packages/nicolasguilloux-wiremock-bundle)
```

###  Alternatives

[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M232](/packages/nelmio-api-doc-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M385](/packages/shopware-core)

PHPackages © 2026

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