Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Callable Fake Laravel Package

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.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
php-mock/php-mock 0.86 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
View on GitHub
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
View on GitHub
bneumann/mock-api-bundle 0.85 — 2 2 0 0 0 0.0 — MIT —
View on GitHub
Context7
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
View on GitHub
stephenjude/api-test-helper 0.84 stephenjude/api-test-helper is a Laravel package that streamlines API testing with convenient helpers and expressive assertions for HTTP and JSON responses. It reduces boilerplate around authentication, request building, and response checks, helping you write cleaner, faster, more reliable API test... 47 — 1 — 0 0.3 — MIT 3 years ago
View on GitHub
sven/laravel-testing-utils 0.84 Practical testing helpers for Laravel applications, including cleaner assertions, setup shortcuts, and conveniences for HTTP, database, and mocking workflows. Designed to keep PHPUnit and Pest suites readable, consistent, and fast without extra boilerplate. 21 24 1 12 1 0.1 1.8 MIT 6 years ago
View on GitHub
phpunit/phpunit-mock-objects 0.84 Default mock object library for PHPUnit. Create test doubles (mocks, stubs, spies) to isolate units under test, define expectations, control method returns, and verify interactions. Designed for PHPUnit projects and compatible with PHP 7.1+. 4,920 5,056 151 759K 0 15.2 21.4 NOASSERTION 13 years ago
View on GitHub
lendable/phpunit-extensions 0.84 — 2 2 0 2K 1 8.6 43.2 MIT 8 months ago
View on GitHub
imanghafoori/laravel-makesure 0.84 — 21 21 3 44 1 1.0 6.5 MIT 2 years ago
View on GitHub
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 — —
View on GitHub
pkly/phpunit-service-create-trait 0.84 A PHPUnit 12+ trait (PHP 8.4+) that builds real service instances with auto-mocked constructor and #[Required] dependencies. Dependencies stay as invisible stubs until fetched, so you only get mock verification where you ask for it. 0 0 0 289 0 20.8 39.4 MIT 1 month ago
View on GitHub
tomb1n0/guzzle-mock-handler 0.84 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 —
View on GitHub
mpyw/laravel-database-mock 0.83 Experimental Laravel package that mocks underlying PDO connections with Mockery, letting you stub SELECT, INSERT, and UPDATE queries and results for fast, database-free tests. Requires PHP 8.2+ and Laravel 11+. 6 6 0 1K 0 13.2 33.9 MIT 4 months ago
View on GitHub
jasonmccreary/laravel-test-assertions 0.83 Adds a trait of extra PHPUnit assertions for Laravel testing. Confirm controllers/actions and named routes use specific FormRequest validation or middleware, compare validation rules (subset or exact), check rule instances, and assert view data is explicitly null. 349 351 38 140K 2 17.5 38.6 — 7 months ago
View on GitHub
donatj/mock-webserver 0.83 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
View on GitHub
eloquent/phony-kahlan 0.83 — 5 5 3 15 0 1.3 5.3 MIT 5 years ago
View on GitHub
mnapoli/phpunit-easymock 0.83 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
View on GitHub
carlescliment/chained-stubs-bundle 0.83 — 0 0 1 0 0 0.0 — — —
View on GitHub
php-mock/php-mock-mockery 0.83 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 78K 2 1.9 45.4 WTFPL 1 year ago
View on GitHub
psr-mock/http 0.83 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
View on GitHub
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings