An open API service indexing awesome lists of open source software.

https://github.com/estahn/guzzle-stereo-bundle

Record and Replay HTTP Responses easily in Symfony
https://github.com/estahn/guzzle-stereo-bundle

guzzle php symfony symfony-bundle

Last synced: 18 days ago
JSON representation

Record and Replay HTTP Responses easily in Symfony

Awesome Lists containing this project

README

        

# GuzzleStereoBundle

[![Latest Stable Version](https://poser.pugx.org/estahn/guzzle-stereo-bundle/version.png)](https://packagist.org/packages/estahn/guzzle-stereo-bundle)
[![Total Downloads](https://poser.pugx.org/estahn/guzzle-stereo-bundle/d/total.png)](https://packagist.org/packages/estahn/guzzle-stereo-bundle)
[![Dependency Status](https://www.versioneye.com/user/projects/56e04e13df573d003f20b20d/badge.svg?style=flat)](https://www.versioneye.com/user/projects/56e04e13df573d003f20b20d)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/6fffbf31-044d-468f-8dba-e962d8fd626d/mini.png)](https://insight.sensiolabs.com/projects/6fffbf31-044d-468f-8dba-e962d8fd626d)
[![Build Status](https://travis-ci.org/estahn/guzzle-stereo-bundle.png?branch=master)](https://travis-ci.org/estahn/guzzle-stereo-bundle)
[![StyleCI](https://styleci.io/repos/53498097/shield)](https://styleci.io/repos/53498097)

The `GuzzleStereoBundle` provides integration of the [guzzle-stereo](https://github.com/ikwattro/guzzle-stereo) library into the Symfony2 framework.

Features include:
* Automatic recording of all outgoing requests through Guzzle
* Replay recorded requests in functional tests
* Copy & paste of file with last recorded requests

`GuzzleStereoBundle` automatically hooks `guzzle-stereo` into Guzzle which then records all requests made through Guzzle.
The goal is to reduce the effort to create mocks for external requests.

## Installation

1. Download the Bundle

Open a command console, enter your project directory and execute the
following command to download the latest stable version of this bundle:

```bash
$ composer require estahn/guzzle-stereo-bundle --dev
```

This command requires you to have Composer installed globally, as explained
in the [installation chapter](https://getcomposer.org/doc/00-intro.md)
of the Composer documentation.

2. Enable the Bundle

Then, enable the bundle by adding it to the list of registered bundles
in the `app/AppKernel.php` file of your project:

```php
.json`.

## Badge Mania
[![Build Status](https://scrutinizer-ci.com/g/estahn/guzzle-stereo-bundle/badges/build.png?b=master)](https://scrutinizer-ci.com/g/estahn/guzzle-stereo-bundle/build-status/master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/estahn/guzzle-stereo-bundle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/estahn/guzzle-stereo-bundle/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/estahn/guzzle-stereo-bundle/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/estahn/guzzle-stereo-bundle/?branch=master)
[![Codacy Badge](https://api.codacy.com/project/badge/grade/41e45a52a1594fa1831bd620d6cca026)](https://www.codacy.com/app/estahn/guzzle-stereo-bundle)