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

Technical Evaluation

The package serves as a minimal compatibility layer for Prophecy-based mocks in legacy systems but carries significant technical risks. Its architecture is designed for short-term bridging rather than long-term use, but the lack of updates since 2020 (PHP 8.0+ compatibility unverified) and near-zero adoption (1 star) indicate abandonment. Integration feasibility is low for modern stacks due to potential conflicts with current PHPUnit versions (9+/10+) and Composer 2+ workflows. Key questions include:

  • Does the shim handle PHP 8+ type system changes (e.g., union types, named arguments)?
  • Is the repository actively maintained or archived?
  • How does it interact with PHPUnit’s native mocking features (e.g., createMock)?
  • Are there known incompatibilities with modern dependency trees (e.g., Symfony 6+, Laravel 9+)?

Integration Approach

This package should only be considered for critical legacy codebases where immediate migration from Prophecy is infeasible. Installation via Composer is trivial but serves as a temporary stopgap, not a sustainable solution. For stack fit: it may work in PHP

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