s1k3/livewire-v4-patch
Dev-only Laravel tool to convert Livewire v4 class components into Model-Focused Components (MFC). Provides an Artisan command to convert single components or whole folders, with options to keep originals, generate JS/CSS, exclude directories, and disable Pint formatting.
*.php, *.js, *.css), accelerating onboarding for legacy codebases.Executives: "This tool automates the migration of Livewire class components to Livewire v4’s modern Multi-File Components (MFC), cutting refactoring time by 70%. For a one-time dev effort (~2 hours setup), it future-proofs our codebase against Livewire’s deprecation of class components, improves maintainability, and aligns with our modular architecture roadmap. Low risk—uses existing Livewire ecosystem."
Engineering:
*"The s1k3/livewire-v4-patch package handles the tedious work of splitting Livewire components into MFCs (PHP + JS + CSS) via a single CLI command. Key benefits:
composer require s1k3/livewire-v4-patch --dev
php artisan vendor:publish --provider="LivewireV4\LivewireV4PatchServiceProvider"
php artisan convert-class-to:mfc app/Livewire/MyComponent.php
Proposal: Pilot on 2–3 low-risk components in the next sprint to validate ROI."*
How can I help you explore Laravel packages today?