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.
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