PHPackages                             ns3777k/hoverfly - 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. ns3777k/hoverfly

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

ns3777k/hoverfly
================

v2.0.0(3y ago)19362MITPHPPHP &gt;=8.0CI failing

Since Jan 16Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ns3777k/hoverfly-php)[ Packagist](https://packagist.org/packages/ns3777k/hoverfly)[ RSS](/packages/ns3777k-hoverfly/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (3)Dependencies (4)Versions (5)Used By (0)

Hoverfly PHP Client
===================

[](#hoverfly-php-client)

[![Build Status](https://camo.githubusercontent.com/93d839898b5873e6a9b7e317eb36ff294f486546c97d3ee2499db28c25416e4b/68747470733a2f2f7472617669732d63692e6f72672f6e73333737376b2f686f766572666c792d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ns3777k/hoverfly-php)[![codecov](https://camo.githubusercontent.com/b614b888d85b3aa5cfd293a9c2b5f331211a0a7a866ff4ecccc84721bacbdf1c/68747470733a2f2f636f6465636f762e696f2f67682f6e73333737376b2f686f766572666c792d7068702f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/ns3777k/hoverfly-php)

PHP Client for [hoverfly](https://hoverfly.io/) based on [java version](https://github.com/SpectoLabs/hoverfly-java).

Why I would use it for?
-----------------------

[](#why-i-would-use-it-for)

Consider having a functional test that sends a request to the application. While handling the request application can use multiple external services like forecast, billing or booking system. We don't wanna test external services because they are not stable, require an internet connection, can limit request rate per second and add delay. During the test we just want **something** to respond to our requests according to the specification, it does not have to be a real service and that's where hoverfly and this client come in.

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

[](#installation)

```
$ composer require --dev ns3777k/hoverfly
```

Example
-------

[](#example)

Your tests have to be configured to use hoverfly proxy server (use `HTTP_PROXY`) and ignore proxy for itself (use `NO_PROXY`).

```
