phrity/net-mock
Mocking layer for phrity/net-stream to simplify testing stream-based code. Drop-in compatible stream classes that can log all interactions via any PSR-3 logger and override behavior with callbacks. Includes PHPUnit expectation traits for asserting calls and parameters.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| mcustiel/phiremock-client | 0.84 | PHP client for Phiremock Server with a fluent API to define HTTP expectations, manage scenarios, and reset server state. Works with Guzzle 6 by default, or any PSR-18 HTTP client by overriding the factory for custom connections. | 16 | 16 | 9 | 11K | 1 | 17.1 | 43.6 | GPL-3.0 | 7 months ago | |
| janmarek/mockista | 0.83 | Mockista is a lightweight mocking library for PHP/Laravel that helps you create and configure test doubles quickly. Define expectations, stub methods, and verify calls with a simple, fluent API to keep unit tests fast, readable, and maintainable. | 29 | 29 | 14 | 248 | 2 | 1.4 | 14.9 | — | — | |
| mcustiel/phiremock-server | 0.82 | PHP HTTP mock/stub server inspired by WireMock. Mock requests by method/headers/URL/body/forms, set responses via REST API, support scenarios, priorities, latency simulation, verification counts, proxying, and loading expectations from JSON files. | 19 | 19 | 6 | 17K | 1 | 13.0 | 43.6 | GPL-3.0 | 7 months ago | |
| psr-mock/http | 0.82 | psr-mock/http is a tiny PHP package for mocking PSR-7 HTTP messages in tests. Create predictable request/response objects without a full HTTP client, helping you unit test middleware, clients, and services with minimal setup. | 1 | 1 | 0 | 1K | 0 | 0.6 | 39.5 | MIT | 2 years ago | |
| php-http/client-integration-tests | 0.82 | 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 | |
| phrity/http | 0.82 | Phrity Http provides small PSR-friendly utilities for HTTP in PHP. Includes an HttpFactory wrapper that combines PSR-17 factories (or auto-configures from a single implementation) and a Serializer that converts PSR-7 requests/responses/messages to raw HTTP strings. | 0 | 0 | 0 | 212K | 0 | 4.6 | 57.1 | MIT | 10 months ago | |
| phrity/net-stream | 0.82 | PSR-7 StreamInterface and PSR-17 StreamFactory implementations built for socket-based I/O. Includes Stream, SocketStream, SocketClient/Server, context wrapper, stream collections, and stream-specific exceptions and utilities for network connections. | 4 | 4 | 3 | 499K | 0 | 12.3 | 59.0 | MIT | 7 months ago | |
| donatj/mock-webserver | 0.81 | Lightweight PHP mock web server for tests and local development. Spin up an HTTP server on a random port, enqueue canned responses, inspect received requests, and simulate endpoints reliably. Handy for integration tests without external services. | 141 | 142 | 22 | 72K | 5 | 17.6 | 42.3 | MIT | 8 months ago | |
| psr-mock/http-factory-implementation | 0.81 | Lightweight PSR-17/PSR-7 HTTP factory/message mock implementation for PHP 8.1+. Built for SDKs and libraries to test against PSR interfaces without hard deps, with strict PSR compliance and helpful debugging API. | 0 | 0 | 0 | 4K | 0 | 0.6 | 50.0 | MIT | 2 years ago | |
| php-http/mock-client | 0.81 | Mock HTTP client for HTTPlug/PHP-HTTP. Stores outgoing requests and returns queued responses or throws exceptions instead of making real network calls—ideal for unit tests of HTTP-dependent code. Install via Composer as a dev dependency. | 71 | 75 | 16 | 266K | 0 | 6.0 | 49.3 | MIT | 2 years ago | |
| psr-mock/http-client-implementation | 0.81 | Tiny PSR-18 HTTP client implementation intended for mocking and testing. Provides a simple client you can plug into PSR-7/PSR-17 workflows to return predefined responses without real network calls. | 1 | 1 | 0 | 3K | 0 | 0.6 | 44.8 | MIT | 2 years ago | |
| bneumann/mock-api-bundle | 0.81 | — | 2 | 2 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| php-mock/php-mock | 0.81 | 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 | |
| psr-mock/http-message-implementation | 0.81 | Lightweight PSR-7 HTTP message implementation mock for testing libraries and SDKs without hard dependencies. Strictly follows PSR behavior and includes a developer-friendly API to debug and fix failing tests faster. For dev use only (PHP 8.1+). | 0 | 0 | 1 | 4K | 0 | 0.6 | 49.0 | MIT | 2 years ago | |
| happyr/service-mocking | 0.81 | HappyR Service Mocking is a Laravel testing helper that makes it easy to replace real services with mocks in the container. Swap bindings during functional and integration tests to isolate dependencies and control behavior without manual container wiring or boilerplate. | 44 | 45 | 7 | 6K | 0 | 0.5 | 29.3 | MIT | 2 years ago | |
| php-mock/php-mock-phpunit | 0.81 | 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 | |
| mcustiel/phiremock-common | 0.81 | Shared utilities for the Phiremock PHP ecosystem. Provides common classes, interfaces, and helpers used across related packages to simplify building and consuming Phiremock client/server components with consistent behavior and minimal duplication. | 3 | 3 | 5 | 13K | 1 | 15.5 | 53.4 | GPL-3.0 | 7 months ago | |
| mnapoli/phpunit-easymock | 0.80 | 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 | |
| phake/phake | 0.80 | Phake is a PHP mocking framework for PHPUnit and other test runners. Create mocks, stubs, and spies with a simple API, verify method calls and arguments, and define return values or exceptions—ideal for fast, isolated unit tests. | 478 | 486 | 86 | 66K | 13 | 23.7 | 37.2 | NOASSERTION | 8 months ago | |
| mcustiel/phiremock | 0.80 | — | 150 | 152 | 15 | 9K | 1 | 10.3 | 24.4 | GPL-3.0 | 5 years ago |
How can I help you explore Laravel packages today?