disrex/magewire-backend-patcher

Applies Magewire backend patch automatically when used with Magewire

1.0.3 2025-04-10 11:06 UTC

This package is auto-updated.

Last update: 2025-08-14 09:02:17 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/magewire module. 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/magewire module 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-install and post-update phases
  • 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/magewire must 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.

Disrex T-Rex Mascot Waving

Sponsored by

Disrex Logo