{"id":13828125,"url":"https://github.com/php-http/vcr-plugin","last_synced_at":"2025-04-13T20:31:04.253Z","repository":{"id":45050227,"uuid":"45800713","full_name":"php-http/vcr-plugin","owner":"php-http","description":"Record your test suite's HTTP interactions and replay them during future test runs.","archived":false,"fork":false,"pushed_at":"2024-01-04T19:05:52.000Z","size":56,"stargazers_count":20,"open_issues_count":0,"forks_count":4,"subscribers_count":8,"default_branch":"1.x","last_synced_at":"2024-09-19T11:40:19.642Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://httplug.io","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/php-http.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-11-08T21:50:24.000Z","updated_at":"2024-06-06T14:48:29.000Z","dependencies_parsed_at":"2024-01-18T05:15:31.703Z","dependency_job_id":"1084d14b-acb7-4b07-86bd-9f4dc221a49b","html_url":"https://github.com/php-http/vcr-plugin","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-http%2Fvcr-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-http%2Fvcr-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-http%2Fvcr-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-http%2Fvcr-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-http","download_url":"https://codeload.github.com/php-http/vcr-plugin/tar.gz/refs/heads/1.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248305854,"owners_count":21081562,"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":[],"created_at":"2024-08-04T09:02:33.180Z","updated_at":"2025-04-13T20:31:04.003Z","avatar_url":"https://github.com/php-http.png","language":"PHP","readme":"# VCR Plugin\n\n[![Latest Version](https://img.shields.io/github/release/php-http/vcr-plugin.svg?style=flat-square)](https://github.com/php-http/vcr-plugin/releases)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)\n[![Build Status](https://img.shields.io/travis/php-http/vcr-plugin.svg?style=flat-square)](https://travis-ci.org/php-http/vcr-plugin)\n[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/php-http/vcr-plugin.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/vcr-plugin)\n[![Quality Score](https://img.shields.io/scrutinizer/g/php-http/vcr-plugin.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/vcr-plugin)\n[![Total Downloads](https://img.shields.io/packagist/dt/php-http/vcr-plugin.svg?style=flat-square)](https://packagist.org/packages/php-http/vcr-plugin)\n\n**Record your test suite's HTTP interactions and replay them during future test runs.**\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require --dev php-http/vcr-plugin\n```\n\n## Usage\n\n```php\n\u003c?php\n\nuse Http\\Client\\Plugin\\Vcr\\NamingStrategy\\PathNamingStrategy;\nuse Http\\Client\\Plugin\\Vcr\\Recorder\\FilesystemRecorder;\nuse Http\\Client\\Plugin\\Vcr\\RecordPlugin;\nuse Http\\Client\\Plugin\\Vcr\\ReplayPlugin;\n\n$namingStrategy = new PathNamingStrategy();\n$recorder = new FilesystemRecorder('some/dir/in/vcs'); // You can use InMemoryRecorder as well\n\n// To record responses:\n$record = new RecordPlugin($namingStrategy, $recorder);\n\n// To replay responses:\n$replay = new ReplayPlugin($namingStrategy, $recorder);\n```\n\n## Testing\n\n``` bash\n$ composer test\n$ composer test-static\n```\n\n\n## Contributing\n\nPlease see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html).\n\n\n## Security\n\nIf you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org).\n\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","funding_links":[],"categories":["PHP"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-http%2Fvcr-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-http%2Fvcr-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-http%2Fvcr-plugin/lists"}