donatj/mock-webserver
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| mcustiel/phiremock-server | 0.87 | 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 | |
| phpspec/prophecy-phpunit | 0.86 | Integrates the Prophecy mocking library with PHPUnit for simpler, cleaner test doubles. Install via Composer and use the ProphecyTrait to call prophesize() inside your TestCase, set method predictions/returns, and reveal mocks for injection. | 195 | 195 | 39 | 1M | 1 | 11.7 | 56.7 | MIT | 8 months ago | |
| mcustiel/phiremock-common | 0.86 | 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 | |
| php-http/client-integration-tests | 0.86 | 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 | |
| jcchavezs/httptest | 0.85 | Spin up a lightweight local HTTP server for integration testing real HTTP calls (e.g., cURL). Define a request handler to assert method/headers/body and craft responses, enabling client- and server-side assertions without mocking HTTP. | 9 | 9 | 1 | 199 | 2 | 1.7 | 18.2 | — | 8 years ago | |
| lastdragon-ru/lara-asp-testing | 0.85 | Testing utilities for integrating Lara ASP into Laravel apps. Provides helpers, fakes, and assertions to simplify writing automated tests around ASP policies, decisions, and request/response flows in your application. | 0 | 0 | 0 | 75 | 0 | 0.0 | 26.0 | MIT | — | |
| tomb1n0/guzzle-mock-handler | 0.85 | Lightweight mock handler for Guzzle to fake HTTP responses in tests. Queue responses, simulate status codes, headers, and body content, and inspect requests without making real network calls—useful for unit/integration testing of API clients. | 3 | 3 | 2 | 4K | 4 | 1.1 | 42.0 | MIT | — | |
| psr-mock/http-factory-implementation | 0.85 | 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 | |
| mcustiel/phiremock-client | 0.85 | 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 | 6 months ago | |
| php-mock/php-mock-integration | 0.85 | 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 | |
| nette/tester | 0.85 | Nette Tester is a lightweight, enjoyable PHP testing framework with expressive assertions, mocks, code coverage, and parallel test execution. It requires no annotations or complex setup, making it a fast, practical choice for testing PHP projects. | 485 | 495 | 71 | 180K | 0 | 33.8 | 41.6 | NOASSERTION | 1 week ago | |
| bneumann/mock-api-bundle | 0.85 | — | 2 | 2 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| josiasmontag/laravel-redis-mock | 0.85 | Drop-in Redis mock for Laravel tests using Redis PHP Mock. Adds a “mock” Redis client so you can run test suites without a running Redis server. Enable via REDIS_CLIENT=mock in .env.testing/phpunit.xml; works with Testbench for package dev. | 48 | 48 | 11 | 39K | 2 | 9.2 | 42.1 | MIT | 8 months ago | |
| codeception/aspect-mock | 0.85 | — | 784 | 791 | 132 | 14K | 40 | 27.3 | 32.9 | MIT | 4 years ago | |
| psr-mock/http | 0.85 | 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-mock/php-mock-prophecy | 0.85 | Prophecy integration for php-mock lets you mock PHP built-in functions like time, rand, and sleep inside Prophecy test doubles. Define expected behavior for global functions alongside class mocks, making time-dependent code testable without hard dependencies. | 16 | — | 4 | — | 0 | 1.5 | — | WTFPL | 11 months ago |
|
| janmarek/mockista | 0.84 | 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 | — | — | |
| noeldemartin/laravel-dusk-mocking | 0.84 | Laravel Dusk Mocking lets you mock classes and services inside Laravel Dusk browser tests, where ordinary mocks can't reach the separate browser process. Register mocks in your test and have them applied in the application, making end-to-end tests faster and more predictable. | 36 | — | 5 | — | 3 | 1.4 | 0.3 | MIT | 11 months ago | |
| psr-mock/http-client-implementation | 0.84 | 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 | |
| php-mock/php-mock | 0.84 | 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 |
How can I help you explore Laravel packages today?