PHPackages                             myparcelcom/guzzle-mock - 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. myparcelcom/guzzle-mock

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

myparcelcom/guzzle-mock
=======================

Test utilities for working with guzzle mock handler in tests

v1.0.1(9mo ago)01.4k↓50%Apache-2.0PHPPHP &gt;=7.4

Since Apr 16Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/MyParcelCOM/guzzle-mock)[ Packagist](https://packagist.org/packages/myparcelcom/guzzle-mock)[ RSS](/packages/myparcelcom-guzzle-mock/feed)WikiDiscussions master Synced 1mo ago

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

guzzle-mock
===========

[](#guzzle-mock)

Test utilities for working with guzzle mock handler in tests

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

[](#installation)

```
composer require --dev myparcelcom/guzzle-mock
```

PHP 7/8
-------

[](#php-78)

The minimum PHP version is `7.4`. To update dependencies on a system without PHP 7 or 8 use:

```
docker run --rm --mount type=bind,source="$(pwd)",target=/app composer:2 composer update --ignore-platform-reqs
```

Usage
-----

[](#usage)

```
use MyParcelCom\GuzzleMock\GuzzleMock;
use PHPUnit\Framework\TestCase;

class MyTest extends TestCase
{
    use GuzzleMock;

    public function testSomething()
    {
        $response1 = new Response();
        $response2 = new Response();

        $requests = [];
        $client = $this->mockGuzzle($requests, $response1, $response2);

        // Make requests using the $client

        $request1 = $requests[0]['request']; // instanceof GuzzleHttp\Psr7\Request
    }
}
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance58

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.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 ~119 days

Total

2

Last Release

278d ago

PHP version history (2 changes)v1.0.0PHP ^8.3

v1.0.1PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/3841efa190ba5131014f8855131e3d38ef5ccd57c51000966348108e63c83612?d=identicon)[myparcelcom](/maintainers/myparcelcom)

---

Top Contributors

[![yoan-myparcel](https://avatars.githubusercontent.com/u/46448148?v=4)](https://github.com/yoan-myparcel "yoan-myparcel (4 commits)")[![yoerriwalstra](https://avatars.githubusercontent.com/u/48599583?v=4)](https://github.com/yoerriwalstra "yoerriwalstra (2 commits)")

### Embed Badge

![Health badge](/badges/myparcelcom-guzzle-mock/health.svg)

```
[![Health](https://phpackages.com/badges/myparcelcom-guzzle-mock/health.svg)](https://phpackages.com/packages/myparcelcom-guzzle-mock)
```

###  Alternatives

[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[ikwattro/guzzle-stereo

Guzzle Recorder for recording Request/Responses and replay them back in a Mock

782.6k1](/packages/ikwattro-guzzle-stereo)

PHPackages © 2026

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