Weave Code
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

Mocker Laravel Package

reecem/mocker

A lightweight Laravel-friendly mocking helper for PHP tests. Quickly define and swap mocks, set expectations, and control return values to simplify unit and feature testing. Designed to reduce boilerplate and keep test setup clean and readable.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
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
View on GitHub
Context7
imanghafoori/eloquent-mockery 0.81 127 127 20 714 4 2.7 12.8 MIT 2 years ago
View on GitHub
Context7
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 374 20 494K 3 18.9 47.6 WTFPL 5 months ago
View on GitHub
Context7
mpyw/laravel-database-mock 0.81 6 6 0 3K 0 19.6 42.8 MIT 1 month ago
View on GitHub
Context7
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
View on GitHub
Context7
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. 476 485 86 53K 13 29.4 37.7 NOASSERTION 5 months ago
View on GitHub
Context7
mockery/mockery 0.80 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,724 10,811 466 10M 106 68.0 62.4 BSD-3-Clause 2 years ago
View on GitHub
Deep Wiki
Context7
php-mock/php-mock-mockery 0.79 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
View on GitHub
Context7
mcustiel/phiremock 0.78 150 153 15 8K 1 10.3 23.9 GPL-3.0 5 years ago
View on GitHub
Context7
codeception/aspect-mock 0.78 790 791 134 15K 40 27.4 33.0 MIT 4 years ago
View on GitHub
Context7
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.
boundwize/jsonrecast
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata