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

Prophecy Shim Laravel Package

weirdan/prophecy-shim

Lightweight shim around Prophecy for PHPUnit, helping keep legacy Prophecy-based tests running on newer PHPUnit/Laravel stacks. Provides compatibility glue with minimal changes so you can upgrade tooling without rewriting your mocks.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables build vs buy decision: Prioritize purchasing this shim over building a custom compatibility layer, saving 2-4 weeks of engineering effort.
  • Supports roadmap flexibility: Delay full migration to modern mocking frameworks (e.g., PHPUnit’s built-in mocks) while maintaining test stability during PHP version upgrades.
  • Critical use case: Legacy codebases with Prophecy-dependent tests needing to upgrade PHP/composer dependencies without rewriting test suites, reducing regression risk during critical infrastructure changes.

When to Consider This Package

  • Adopt when:
    • Your test suite relies on Prophecy APIs and you need to upgrade PHP/composer dependencies immediately but lack resources for full test refactoring.
    • The project is in maintenance mode with tight deadlines, and stability is prioritized over long-term tooling modernization.
  • Look elsewhere when:
    • The project is new (start with modern mocking tools like PHPUnit’s native mocks instead).
    • The package’s 2020 last release indicates incompatibility with PHP 8.x+ or newer Composer standards (verify compatibility first).
    • Actively maintained alternatives (e.g., phpunit/phpunit’s built-in mocking) are viable for your stack.

How to Pitch It (Stakeholders)

Executives: "This package eliminates $50K+ in engineering costs by avoiding test suite rewrites during PHP upgrades

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.
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log