php-vcr/vcr-bundle

Integrates php-vcr into Symfony and its web profiler.

Installs: 20 482

Dependents: 0

Suggesters: 0

Security: 0

Stars: 9

Watchers: 5

Forks: 7

Open Issues: 4

Type:symfony-bundle

2.0.0 2021-08-25 14:34 UTC

This package is not auto-updated.

Last update: 2021-10-09 17:37:19 UTC


README

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:

composer require php-vcr/vcr-bundle

And declare the bundle in your config/bundles.php file:

return [
    // ...
    VCR\VCRBundle\VCRBundle::class => ['test' => true],
];

Configuration reference

vcr:
    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.