PHPackages                             webclient/fake-http-client - 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. webclient/fake-http-client

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

webclient/fake-http-client
==========================

Mock PSR-18 HTTP client

v3.0.0(3y ago)21.3k18MITPHPPHP ^7.4 || ^8.0CI failing

Since Jun 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/phpwebclient/fake-http-client)[ Packagist](https://packagist.org/packages/webclient/fake-http-client)[ Fund](https://www.paypal.me/ddrv)[ RSS](/packages/webclient-fake-http-client/feed)WikiDiscussions 3.x Synced today

READMEChangelog (6)Dependencies (8)Versions (9)Used By (8)

[![Latest Stable Version](https://camo.githubusercontent.com/57ca3e7ee64484a27452fbe6817b8409fb86dec99687ede3be0f10e73991cfaf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776562636c69656e742f66616b652d687474702d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webclient/fake-http-client)[![Total Downloads](https://camo.githubusercontent.com/e51ac1f4f87e0fb85d1d5c6bddcf106126905c2fd85ebd97844ddd5f96e6d335/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776562636c69656e742f66616b652d687474702d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webclient/fake-http-client/stats)[![License](https://camo.githubusercontent.com/09bc1cf4a78739281a36c3f81cae86386373d3f0f1279409953508d18473379e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f776562636c69656e742f66616b652d687474702d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://github.com/phpwebclient/fake-http-client/blob/master/LICENSE)[![PHP](https://camo.githubusercontent.com/bc1c0d34d3611b3e56ce274cb8fa13f56b3c7caa1e54528a91d8ce97f4832b10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f776562636c69656e742f66616b652d687474702d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://php.net)

webclient/fake-http-client
==========================

[](#webclientfake-http-client)

Mock for PSR-18 HTTP client

Install
=======

[](#install)

Add package to project

```
composer require --dev webclient/fake-http-client:^3.0
```

Set autoload

```
