Registry / testing / php-vcr-php-vcr

php-vcr-php-vcr

JSON →
library1.9.0phppackagistunverified

Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.

composer require php-vcr/php-vcr
INSTALL
IMPORT
SIG · PHP-VCR-PHP-VCR
P
php-vcr-php-vcr
testingphpv1.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

VCR
use VCR\VCR;

Record and replay HTTP interactions for testing.

use VCR\VCR; VCR::turnOn(); VCR::insertCassette('example'); $response = file_get_contents('http://example.com'); VCR::turnOff();
Debug
Known issues
gotchaPHP-VCR requires the HTTP extension (e.g., curl) and may conflict with other stream wrappers.
fix
Ensure no other stream wrappers are registered before turning on VCR.
affects: *
Upgrade
Version history
1.9.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
php-vcr-php-vcr — pip install php-vcr-php-vcr · libregistry