janmarek/mockista
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| sofa/eloquent-testsuite | 0.90 | — | 10 | 10 | 2 | 862 | 0 | 2.6 | 26.2 | MIT | 5 years ago | |
| mpyw/laravel-database-mock | 0.90 | — | 6 | 6 | 0 | 3K | 0 | 19.6 | 42.8 | MIT | 1 month ago | |
| psr-mock/http | 0.89 | 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 | 38.5 | MIT | 2 years ago | |
| avris/function-mock | 0.89 | 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 | — | — | — | |
| mcustiel/phiremock | 0.88 | — | 150 | 153 | 15 | 8K | 1 | 10.3 | 23.9 | GPL-3.0 | 5 years ago | |
| polishsymfonycommunity/symfony2-mocker-extension | 0.88 | Behat extension for Symfony2 that lets you mock services in the dependency injection container during tests. Built on Mockery and SymfonyMockerContainer. Consider it a hack and use sparingly; alternative: TestDoubleBundle. | 26 | 26 | 7 | 132 | 0 | 0.6 | 10.6 | MIT | 10 years ago | |
| imanghafoori/eloquent-mockery | 0.88 | — | 127 | 127 | 20 | 714 | 4 | 2.7 | 12.8 | MIT | 2 years ago | |
| codeception/aspect-mock | 0.87 | — | 785 | 791 | 134 | 14K | 40 | 27.4 | 33.0 | MIT | 4 years ago | |
| php-mock/php-mock | 0.87 | 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 | 374 | 20 | 494K | 3 | 18.9 | 47.6 | WTFPL | 6 months ago | |
| lendable/phpunit-extensions | 0.87 | — | 2 | 2 | 0 | 5K | 1 | 13.5 | 49.6 | MIT | 5 months ago | |
| belsym/test-bundle | 0.87 | — | 1 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| eloquent/phony-phpunit | 0.86 | 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.7 | MIT | 5 years ago | |
| bneumann/mock-api-bundle | 0.86 | — | 2 | 2 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| 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 | 16.2 | 53.8 | GPL-3.0 | 4 months ago | |
| psr-mock/http-client-implementation | 0.86 | 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 | |
| mcustiel/phiremock-client | 0.86 | 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 | 18.5 | 44.4 | GPL-3.0 | 4 months ago | |
| draw/tester | 0.86 | Tools for testing PHP apps: DataTester wraps PHPUnit assertions with a fluent, path-based API for arrays/objects. Includes PHPUnit extensions like CarbonReset to reset Carbon state between tests and SetUpAutowire to autowire test properties via attributes. | 0 | 0 | 0 | 818 | 0 | 0.0 | 40.2 | MIT | — | |
| timacdonald/callable-fake | 0.86 | 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. | 46 | 45 | 2 | 50 | 0 | 3.0 | 4.4 | MIT | 1 year ago | |
| php-mock/php-mock-mockery | 0.85 | Integrates php-mock with Mockery to mock PHP built-in functions in tests. Create namespaced function mocks with PHPMockery::mock() and set expectations/returns, then call Mockery::close(). Supports only unqualified calls; define early if needed. | 39 | 39 | 5 | 69K | 2 | 1.9 | 44.6 | WTFPL | 1 year ago | |
| phake/phake | 0.85 | 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. | 476 | 485 | 86 | 50K | 13 | 29.1 | 37.2 | NOASSERTION | 5 months ago |
How can I help you explore Laravel packages today?