PHPackages                             webignition/http-history-container - 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. webignition/http-history-container

ActiveLibrary[HTTP &amp; Networking](/categories/http)

webignition/http-history-container
==================================

A container for Guzzle history middleware

4.0(6mo ago)382.5k19MITPHPPHP ^8.4CI passing

Since Mar 29Pushed 6mo ago2 watchersCompare

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

READMEChangelog (10)Dependencies (15)Versions (36)Used By (9)

Guzzle HTTP History Container
=============================

[](#guzzle-http-history-container)

Helping you more easily test what your [Guzzle HTTP client](https://docs.guzzlephp.org/en/stable/) has been up to.

A container for [Guzzle history middleware](https://docs.guzzlephp.org/en/stable/testing.html#history-middleware)offering smashingly-nice access to:

- collections of HTTP transactions (requests plus responses)
- requests made
- responses received
- request URLs

Oh also logging. Really useful when your Guzzle client under test is not executing within the same thread as your tests.

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
