{"id":19175133,"url":"https://github.com/phpjuice/pest-plugin-vcr","last_synced_at":"2025-07-12T03:34:59.830Z","repository":{"id":47470635,"uuid":"400655435","full_name":"phpjuice/pest-plugin-vcr","owner":"phpjuice","description":"Integrates Pest with PHP-VCR","archived":false,"fork":false,"pushed_at":"2021-08-30T14:34:12.000Z","size":47,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T15:05:37.237Z","etag":null,"topics":["pest","pest-vcr","php-vcr","vcr"],"latest_commit_sha":null,"homepage":"https://phpjuice.github.io/pest-plugin-vcr","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phpjuice.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-27T23:12:30.000Z","updated_at":"2023-02-21T11:30:01.000Z","dependencies_parsed_at":"2022-08-27T02:30:33.563Z","dependency_job_id":null,"html_url":"https://github.com/phpjuice/pest-plugin-vcr","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/phpjuice/pest-plugin-vcr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpjuice%2Fpest-plugin-vcr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpjuice%2Fpest-plugin-vcr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpjuice%2Fpest-plugin-vcr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpjuice%2Fpest-plugin-vcr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpjuice","download_url":"https://codeload.github.com/phpjuice/pest-plugin-vcr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpjuice%2Fpest-plugin-vcr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264504236,"owners_count":23618797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pest","pest-vcr","php-vcr","vcr"],"created_at":"2024-11-09T10:21:11.974Z","updated_at":"2025-07-12T03:34:59.772Z","avatar_url":"https://github.com/phpjuice.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pest plugin for PHP-VCR\n\n![GitHub Actions](https://github.com/phpjuice/pest-plugin-vcr/actions/workflows/ci.yml/badge.svg)\n[![Latest Stable Version](http://poser.pugx.org/phpjuice/pest-plugin-vcr/v)](https://packagist.org/packages/phpjuice/pest-plugin-vcr)\n[![Total Downloads](http://poser.pugx.org/phpjuice/pest-plugin-vcr/downloads)](https://packagist.org/packages/phpjuice/pest-plugin-vcr)\n[![License](http://poser.pugx.org/phpjuice/pest-plugin-vcr/license)](https://packagist.org/packages/phpjuice/pest-plugin-vcr)\n\nIntegrates Pest with [PHP-VCR](http://php-vcr.github.io) using plugins.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require phpjuice/pest-plugin-vcr --dev\n```\n\n## Setup\n\nAdd new folder inside tests to store cassettes:\n\n```bash\nmkdir tests/cassettes\n```\n\nAdd the following line to your `Pest.php` file, this will tell\nVCR where to look for `cassettes`:\n\n```php\nuse VCR\\VCR;\n\n\nVCR::configure()-\u003esetCassettePath(__DIR__.'/cassettes');\n```\n\n## Usage\n\nThis plugin will provide you with two handy functions `vcrTurnOn` \u0026 `vcrTurnOff` to turn on and off the http recording :\n\n```php\nit('records requests to pestphp.com', function () {\n\n    vcrTurnOn('pestphp.com');\n\n    $result = file_get_contents('https://pestphp.com/');\n\n    expect($result)\n        -\u003etoBe('Hello from pestphp.');\n\n    vcrTurnOff();\n});\n```\n\nThe previous testsuite, will first send a request to `pestphp.com` and\nRecord your test suite's HTTP interactions into a cassette and replay them\nduring future test runs for fast, deterministic, accurate tests.\n\n\u003e **Important** before running your tests make sure to have the following folder `tests/cassettes`\n\n### Testing\n\n```bash\ncomposer test\n```\n\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n### Security\n\nIf you discover any security related issues, send us an email to phpjuice@gmail.com instead of using the issue tracker.\n\n## Credits\n\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n## PHP Package Boilerplate\n\nThis package was generated using the [PHP Package Boilerplate](https://laravelpackageboilerplate.com) by [Beyond Code](http://beyondco.de/).\n\n![GitHub Actions](https://github.com/phpjuice/pest-plugin-vcr/actions/workflows/ci.yml/badge.svg)\n[![Latest Stable Version](http://poser.pugx.org/phpjuice/pest-plugin-vcr/v)](https://packagist.org/packages/phpjuice/pest-plugin-vcr)\n[![Total Downloads](http://poser.pugx.org/phpjuice/pest-plugin-vcr/downloads)](https://packagist.org/packages/phpjuice/pest-plugin-vcr)\n[![License](http://poser.pugx.org/phpjuice/pest-plugin-vcr/license)](https://packagist.org/packages/phpjuice/pest-plugin-vcr)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpjuice%2Fpest-plugin-vcr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpjuice%2Fpest-plugin-vcr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpjuice%2Fpest-plugin-vcr/lists"}