php-vcr/phpunit-testlistener-vcr
PHPUnit TestListener integrating PHP-VCR via @vcr annotations. Automatically turns VCR on/off per test and records/replays HTTP interactions using named cassettes. Install with Composer and register the listener in phpunit.xml.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| covergenius/phpunit-testlistener-vcr | 0.88 | PHPUnit test listener that records and replays HTTP interactions using a VCR-style approach. Capture real API responses into cassettes during tests, then replay them for fast, deterministic runs without hitting external services. | 3 | 3 | 2 | 1K | 0 | 2.5 | 34.6 | MIT | 1 year ago | |
| php-vcr/php-vcr | 0.87 | PHP-VCR records your test suite’s HTTP interactions and replays them in future runs for fast, deterministic tests. Works with common PHP HTTP clients, configurable request matching, cassette-based fixtures, YAML/JSON storage, and PHPUnit support. | 1,220 | 1,221 | 214 | 84K | 8 | 43.6 | 38.9 | MIT | 3 months ago | |
| php-vcr/vcr-bundle | 0.86 | Symfony integration for PHP-VCR that records real HTTP interactions and replays them in your test suite. Configure cassettes, hooks and fixtures to keep functional tests fast, deterministic and offline without changing your HTTP client code. | 13 | 13 | 10 | 0 | 4 | 10.3 | 0.8 | — | 6 months ago | |
| php-mock/php-mock-phpunit | 0.86 | Integrate php-mock with PHPUnit to mock built-in PHP functions (like time(), file_get_contents(), etc.) in a controlled, namespaced way. Ideal for unit tests that need to simulate IO, time, and other global behaviors without changing production code. | 173 | 176 | 20 | 236K | 4 | 28.3 | 51.3 | WTFPL | 1 month ago | |
| covergenius/php-vcr | 0.86 | PHP VCR for recording and replaying HTTP interactions during tests. Stores “cassettes” of requests/responses to make suites fast, deterministic, and offline-friendly. Useful for mocking third-party APIs without brittle stubs. | 1 | 1 | 3 | 1K | 0 | 22.0 | 46.3 | MIT | 3 months ago | |
| php-http/vcr-plugin | 0.86 | A PHP-HTTP plugin that records real HTTP interactions and replays them in tests, similar to Ruby's VCR. Drop it into any HTTPlug-compatible client to capture responses once, then run fast, deterministic, offline test suites without hitting external APIs. | 21 | — | 4 | — | 0 | 2.4 | — | MIT | 10 months ago |
|
| php-mock/php-mock | 0.85 | Mock built-in PHP functions like time() or rand() in tests by leveraging PHP’s namespace fallback: define namespaced replacements for unqualified calls. Works in non-global namespaces; supports common test frameworks via integrations (e.g., PHPUnit). | 370 | 375 | 19 | 726K | 3 | 13.0 | 47.8 | WTFPL | 9 months ago | |
| mnapoli/phpunit-easymock | 0.85 | A lightweight bridge between PHPUnit and EasyMock for PHP. Quickly create, replay, and verify mocks from your test cases with minimal boilerplate, helping you write clear unit tests using the familiar EasyMock-style workflow. | 38 | 38 | 4 | 1K | 0 | 4.8 | 20.6 | MIT | 1 year ago | |
| garethp/http-playback | 0.85 | Record real HTTP responses once, then replay them deterministically in your PHP tests. GarethP's HTTP Playback makes it easy to capture and reuse external API interactions, keeping test suites fast, reliable, and free of network flakiness. | 7 | 7 | 4 | 18K | 1 | 0.4 | 46.2 | MIT | 5 years ago | |
| phperf/phpunit | 0.84 | phperf/phpunit is a lightweight PHPUnit extension aimed at profiling and performance measurement during test runs. Add simple hooks to capture timing and resource usage so you can spot slow tests and track performance regressions over time. | 0 | 0 | 0 | 193 | 0 | 0.9 | 31.2 | NOASSERTION | 4 years ago | |
| phpunit/phpunit | 0.84 | PHPUnit is a programmer-oriented testing framework for PHP, an xUnit architecture instance for unit testing. Install via PHAR or Composer. | 0 | 20,591 | — | 27M | — | 15.0 | 55.3 | — | — | |
| php-http/client-integration-tests | 0.83 | Integration test suite for PHP HTTP clients and adapters. Provides a shared test server and PHPUnit testsuite so you can verify that your client correctly implements the PSR-18 and HTTPlug contracts against real HTTP requests. | 16 | 17 | 10 | 555 | 1 | 19.6 | 23.7 | MIT | 4 months ago | |
| phpunit/dbunit | 0.83 | PHPUnit extension for database interaction testing. Provides DbUnit helpers for setting up database fixtures and asserting database state in tests. Install via Composer (dev) or PHAR. Note: this package is no longer maintained. | 222 | 245 | 183 | 52K | 9 | 5.0 | 25.2 | NOASSERTION | 11 years ago | |
| contentful/contentful | 0.83 | Official PHP client for Contentful’s Content Delivery and Preview APIs. Fetch entries, assets, and content types from your spaces with a typed SDK, caching and link resolution options, and easy integration into PHP applications and frameworks. | 119 | 120 | 66 | 101K | 6 | 13.9 | 44.3 | MIT | 1 year ago | |
| php-http/psr7-integration-tests | 0.83 | A PHPUnit-based integration test suite for PSR-7 HTTP message implementations. It verifies requests, responses, streams, URIs, and headers against the PSR-7 specification, helping libraries like Guzzle, Laminas, Slim, and Nyholm ensure compliance. | 41 | 42 | 23 | 3K | 1 | 22.8 | 30.1 | MIT | 2 weeks ago | |
| php-mock/php-mock-integration | 0.83 | Integration layer for php-mock, making it easy to use PHP function mocks within popular test frameworks. Helps you stub built-in functions like time(), rand(), and file operations in specific namespaces, enabling reliable, isolated unit tests without touching global state. | 14 | 14 | 6 | 374K | 0 | 8.2 | 57.8 | WTFPL | 9 months ago | |
| spatie/phpunit-watcher | 0.83 | Automatically rerun PHPUnit tests whenever your code changes. Run phpunit-watcher watch to execute and re-execute tests on edits in app/src/tests. Supports passing through PHPUnit arguments (e.g. --filter) and works as a global tool or dev dependency. | 875 | 883 | 75 | 338K | 0 | 35.6 | 42.0 | MIT | 1 day ago | |
| phpcr/phpcr | 0.83 | PHPCR defines a common PHP interface for content repositories, inspired by JCR. It standardizes storing and querying structured content across implementations, enabling interchangeable backends, consistent APIs, and integration with tools like Doctrine and Symfony. | 441 | 443 | 35 | 31K | 2 | 9.0 | 26.4 | NOASSERTION | 1 year ago | |
| robiningelbrecht/phpunit-pretty-print | 0.82 | A PHPUnit result printer that transforms default test output into clean, colorful, readable reports. See progress, failures, and timing at a glance, with less noise and more useful detail during every test run. Easy to install and configure via phpunit.xml. | 77 | — | 2 | — | 1 | 8.4 | — | MIT | 7 months ago |
|
| padraic/phpunit-accelerator | 0.80 | padraic/phpunit-accelerator is a PHPUnit extension that speeds up test execution for PHP projects. It helps shorten feedback loops by reducing time spent waiting on test suites, making it easier to iterate quickly while continuing to use PHPUnit. | 12 | 12 | 2 | 327 | 0 | 0.1 | 19.6 | MIT | — |
How can I help you explore Laravel packages today?