timacdonald/callable-fake
A tiny PHP testing utility for faking/invoking callables. CallableFake lets you replace closures or invokable objects, record calls and arguments, assert usage, and return configured values—useful for isolating behavior in PHPUnit/Laravel tests.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| amranidev/laracombee | 0.84 | Laravel package for the Recombee recommendation API. Manage users, items, and interactions, and fetch personalized recommendations with a Laravel-friendly interface—ideal for e-commerce, media libraries, and marketplaces. Compatible with Laravel 10–12, PHP 8.2+. | 115 | 115 | 9 | 1K | 0 | 18.4 | 15.3 | MIT | 4 months ago | |
| mcustiel/phiremock | 0.84 | — | 150 | 153 | 15 | 8K | 1 | 10.3 | 23.9 | GPL-3.0 | 5 years ago | |
| tomeasterbrook/livewire-fakeable | 0.83 | — | 0 | 0 | 0 | 0 | 0 | 0.1 | — | MIT | — | |
| mockery/mockery | 0.83 | Mockery is a flexible PHP mock object framework for unit testing with PHPUnit, PHPSpec, and more. It provides a readable DSL to define expectations and interactions, integrates cleanly with PHPUnit, and can be used alongside PHPUnit’s own mocking tools. | 10,726 | 10,811 | 466 | 10M | 106 | 68.0 | 62.4 | BSD-3-Clause | 2 years ago | |
| guzzle/plugin-mock | 0.83 | guzzle/plugin-mock provides a mock plugin for Guzzle, letting you queue predefined responses and simulate HTTP requests during testing. Useful for isolating API clients, reproducing edge cases, and running fast, reliable unit tests without real network calls. | 3 | 3 | 0 | 505 | 0 | 0.0 | 29.1 | — | — | |
| belsym/test-bundle | 0.82 | — | 1 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| mcustiel/phiremock-client | 0.82 | 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 | 12K | 1 | 18.5 | 44.4 | GPL-3.0 | 3 months ago | |
| eloquent/phony-kahlan | 0.81 | — | 5 | 5 | 3 | 26 | 0 | 1.3 | 7.1 | MIT | 5 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 | 2K | 0 | 0.6 | 42.5 | MIT | 2 years ago | |
| boson-php/http-static-provider | 0.81 | Laravel/PHP package that provides a static HTTP provider for Boson, useful for serving fixed responses in tests, mocks, or offline scenarios. Simple setup to return predefined status, headers, and body without making real network requests. | 0 | 0 | 0 | 22 | 0 | 0.0 | 18.8 | MIT | — | |
| sofa/eloquent-testsuite | 0.81 | — | 10 | 10 | 2 | 862 | 0 | 2.6 | 26.2 | MIT | 5 years ago | |
| avris/function-mock | 0.81 | Mock PHP functions in unit tests without changing your code. avris/function-mock lets you replace and control built-in and user-defined function calls at runtime, making it easier to test legacy code, edge cases, and hard-to-isolate behavior. | 0 | 0 | — | 0 | — | 0.0 | — | — | — | |
| janmarek/mockista | 0.81 | 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 | 361 | 2 | 1.4 | 16.9 | — | — | |
| eloquent/phony-phpunit | 0.81 | Integration of the Phony mocking/stubbing library with PHPUnit, providing helpers to use Phony in your test suite. Note: this package is no longer maintained; see the linked statement and consider alternatives or the main Phony repo. | 6 | 6 | 3 | 718 | 0 | 1.6 | 19.3 | MIT | 5 years ago | |
| lastdragon-ru/lara-asp-testing | 0.81 | 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 | 0 | 0 | 0.0 | — | MIT | — | |
| imanghafoori/eloquent-mockery | 0.80 | — | 127 | 127 | 20 | 714 | 4 | 2.7 | 12.8 | MIT | 2 years ago | |
| digitalrevolution/utils | 0.80 | — | 1 | 1 | 8 | 2K | 1 | 24.5 | 48.2 | MIT | 3 months ago | |
| adroit11/laravel-tests | 0.80 | Reusable Laravel testing package with publishable test stubs, custom assertions, and helper utilities. Drop into Laravel 10/11 (PHP 8.1+) and run with PHPUnit or Pest to speed up common feature and integration testing setups. | 2 | 2 | 0 | 0 | 0 | 0.0 | — | — | — | |
| symfonycasts/internal-test-helpers | 0.80 | Internal test utilities from SymfonyCasts to streamline PHPUnit and Symfony/Laravel package testing. Provides shared helpers, fixtures, and assertions used across SymfonyCasts projects to reduce boilerplate and keep tests consistent and readable. | 0 | — | 2 | — | 0 | 0.1 | — | — | — | |
| wyrihaximus/test-utilities | 0.80 | A set of PHP test utilities for package development: a PHPUnit TestCase with helpers like random namespaces and temp directories, plus ready-made configuration defaults for PHPStan and Rector (paths and docblock-to-attribute conversions). | 7 | 7 | 1 | 145K | 6 | 34.0 | 69.9 | MIT | 3 days ago |
How can I help you explore Laravel packages today?