disrex / magewire-backend-patcher
Applies Magewire backend patch automatically when used with Magewire
Installs: 554
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:composer-plugin
pkg:composer/disrex/magewire-backend-patcher
Requires
- composer-plugin-api: ^2.0
 
This package is auto-updated.
Last update: 2025-10-14 09:18:45 UTC
README
Composer plugin that seamlessly applies patches to enable Magewire functionality in Magento 2's backend area. Fully automated patching with no manual intervention required.
⚠️ This plugin is specifically designed for the
magewirephp/magewiremodule. Ensure it's installed before using this patcher.
✅ Installation
Add the Magewire Backend Patcher to your project via Composer:
composer require disrex/magewire-backend-patcher
Note: The patch will be automatically applied during installation or updates if the
magewirephp/magewiremodule is present in the project.
🔧 How It Works
The plugin automatically performs these steps during Composer operations:
- Automatic Detection: Searches for the Magewire module at 
vendor/magewirephp/magewire - Patch Application: Applies the backend compatibility patch during 
post-installandpost-updatephases - Validation: Checks if patches are already applied and prevents conflicts
 - Safety: Includes safeguards against re-application with user warnings
 
🚀 Features
- ✅ Fully automated - no manual patching required
 - ✅ Enables Magewire in both frontend and backend contexts
 - ✅ Includes validation checks and conflict prevention
 - ✅ Compatible with standard Composer workflows
 
📋 Requirements
- PHP: ^8.0
 - Composer: ^2.0
 - Magento: Compatible with Magento 2 environments
 - Magewire module: 
magewirephp/magewiremust be installed 
🛠️ Manual Patch Application
If needed, manually trigger the patch process:
composer run-script post-install-cmd
This will reapply the patch and display the operation status.
📝 Patch Details
This plugin applies changes that:
- Refactor configuration to support both frontend and backend contexts
 - Add necessary dependencies, events, and layouts for backend compatibility
 - Restructure frontend-specific code for improved shared base usage
 
Related Resources:
📄 License
This project is licensed under the MIT License. See the LICENSE file for details.
👨💻 Support
Have questions or want to collaborate? Open a discussion on GitHub Discussions.