php-vcr / vcr-bundle
Integrates php-vcr into Symfony and its web profiler.
Installs: 22 579
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 5
Forks: 9
Open Issues: 4
Type:symfony-bundle
Requires
- php: ^7.2
- php-vcr/php-vcr: ^1.5
- symfony/config: ^4|^5
- symfony/dependency-injection: ^4|^5
- symfony/event-dispatcher: ^4|^5
- symfony/filesystem: ^4|^5
- symfony/http-foundation: ^4|^5
- symfony/http-kernel: ^4.4|^5
- symfony/yaml: ^4|^5
Requires (Dev)
- neutron/temporary-filesystem: ^2.3
- phpunit/phpunit: ^7.5
- symfony/framework-bundle: ^4.4|^5.3
- symfony/phpunit-bridge: ^5.2|^6
README
Integrates php-vcr into Symfony and its web profiler.
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
- Kévin Gomez
- Ludovic Fleury - to whom I borrowed the design of the web profiler part from his GuzzleBundle.
License
This bundle is released under the MIT license.