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

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.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai