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

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.
oxygen/data
oxygen/core
jengo/base
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table