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
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). 369 374 20 545K 3 28.0 51.9 WTFPL 2 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,725 10,812 463 9M 104 87.9 82.1 BSD-3-Clause 1 year ago
View on GitHub
Deep Wiki
Context7
league/factory-muffin 0.80 Factory Muffin helps you rapidly create test objects in PHP with simple, reusable model factories (inspired by factory_girl). Define models and generate instances for fixtures and unit tests; optional Faker integration is available via factory-muffin-faker. 537 541 73 290K 17 39.6 54.7 MIT 5 years ago
View on GitHub
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 64K 2 21.9 52.1 WTFPL 1 year ago
View on GitHub
Context7
roave/better-reflection 0.73 Reflection library enhancing PHP’s built-in API with advanced features like AST extraction, type declarations, and non-loaded class reflection. Ideal for static analysis tools but not for runtime performance-critical tasks. Supports PHP 7+ and provides deeper type metadata than native reflection. 1,237 1,241 138 230K 14 44.0 43.1 MIT 1 day ago
View on GitHub
Context7
rector/swiss-knife 0.71 Swiss Knife for upgrades: CLI tools to keep codebases clean and PSR-4 compliant. Detect git merge conflicts and commented-out code, find multiple classes per file, fix namespaces to match PSR-4 roots, and finalize classes without children (with skips for mocks/files). 202 200 18 118K 0 22.0 44.9 MIT 7 months ago
View on GitHub
Context7
spatie/phpunit-snapshot-assertions 0.71 Add snapshot testing to PHPUnit with simple assertions for JSON, XML, and text. First run creates snapshots; later runs compare outputs and fail on regressions. Ideal for verifying serialized data and responses with minimal test boilerplate. 695 699 77 608K 1 34.9 47.8 MIT 1 month ago
View on GitHub
Deep Wiki
Context7
sebastian/object-reflector 0.70 Reflect object properties across a class hierarchy, including inherited, private, and protected members. sebastian/object-reflector provides a small utility for accessing and inspecting object state when PHP’s standard reflection APIs are inconvenient. 6,282 6,287 3 12M 0 46.0 53.6 BSD-3-Clause 2 months 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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport