Skip to content
Integrates php-vcr into Symfony and its web profiler.
Branch: master
Clone or download
Pull request Compare This branch is 10 commits ahead of php-vcr:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DataCollector
DependencyInjection
EventListener
Resources
VCR
.gitignore
README.md
VCRVCRBundle.php
composer.json

README.md

VCRBundle

Integrates php-vcr into Symfony and its web profiler.

PHP-VCR Symfony web profiler panel

PHP-VCR Symfony web profiler panel - request details

PHP-VCR Symfony web profiler panel - response details

Installation

Install the behavior adding php-vcr/vcr-bundle to your composer.json or from CLI:

php composer.phar require php-vcr/vcr-bundle

And declare the bundle in your app/AppKernel.php file:

public function registerBundles()
{
    if (in_array($this->getEnvironment(), array('dev', 'test'))) {
        $bundles[] = new VCR\VCRBundle\VCRVCRBundle();
    }
}

Configuration reference

vcrvcr:
    enabled: true
    library_hooks:
        stream_wrapper: false
        curl: false
        soap: false
    request_matchers:
        method: true
        url: true
        query_string: true
        host: true
        headers: true
        body: true
        post_fields: true
    cassette:
        type: json
        path: '%kernel.cache_dir%/vcr'
        name: vcr

Credits

License

This bundle is released under the MIT license.

You can’t perform that action at this time.