Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Guzzle Stereo Bundle Laravel Package

estahn/guzzle-stereo-bundle

View on GitHub
Deep Wiki
Context7

GuzzleStereoBundle

Latest Stable Version Total Downloads Dependency Status SensioLabsInsight Build Status StyleCI

The GuzzleStereoBundle provides integration of the 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:

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

    This command requires you to have Composer installed globally, as explained in the installation chapter 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
    // app/AppKernel.php
    
    // ...
    class AppKernel extends Kernel
    {
        public function registerBundles()
        {
            $bundles = array(
                // ...
    
                new EnricoStahn\Bundle\GuzzleStereoBundle\GuzzleStereoBundle(),
            );
    
            // ...
        }
    
        // ...
    }
    
  3. Enable the service by adding the following empty configuration:

    # app/config/config_test.yml
    guzzle_stereo: ~
    

Usage

Refresh your page and find the created file in app/logs/record_<tape name>.json.

Badge Mania

Build Status Scrutinizer Code Quality Code Coverage Codacy Badge

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator