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

Mock Final Classes Laravel Package

nunomaduro/mock-final-classes

Dev-only helper that automatically enables mocking of final classes and methods in PHP tests. Works with PHPUnit, Pest, and ParaTest by removing final keywords on the fly via dg/bypass-finals—install with Composer and it just works.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: Strong alignment with Laravel's testing ecosystem. Laravel projects commonly integrate third-party SDKs (e.g., AWS, Stripe) with final classes, and this package directly addresses testing challenges without modifying production code. It leverages PHPUnit's existing workflow, which is standard in Laravel applications.
Integration feasibility: High. Simple Composer installation (composer require --dev nunomaduro/mock-final-classes) with no additional bootstrapping required. However, the absence of a public repository complicates version compatibility checks and issue tracking.
Technical risk: Moderate. Bypassing final restrictions typically relies on PHP reflection or runtime hacks, which could break with PHP updates (

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.
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
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