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(10mo ago)01.7k↓45.2%Apache-2.0PHPPHP &gt;=7.4

Since Apr 16Pushed 10mo 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 2d 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

32

—

LowBetter than 69% of packages

Maintenance53

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

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

324d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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