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.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata