PHPackages                             disrex/magewire-backend-patcher - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. disrex/magewire-backend-patcher

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

disrex/magewire-backend-patcher
===============================

Applies Magewire backend patch automatically when used with Magewire

1.0.3(1y ago)08481MITPHP

Since Mar 25Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/disrex-group/magewire-backend-patcher)[ Packagist](https://packagist.org/packages/disrex/magewire-backend-patcher)[ RSS](/packages/disrex-magewire-backend-patcher/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (1)Versions (5)Used By (1)

Magewire Backend Patcher for Magento 2
======================================

[](#magewire-backend-patcher-for-magento-2)

**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
--------------

[](#-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
--------------

[](#-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
----------

[](#-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
--------------

[](#-requirements)

- **PHP:** ^8.0
- **Composer:** ^2.0
- **Magento:** Compatible with Magento 2 environments
- **Magewire module:** `magewirephp/magewire` must be installed

---

🛠️ Manual Patch Application
---------------------------

[](#️-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
---------------

[](#-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:**

- [Original Pull Request](https://github.com/magewirephp/magewire/pull/139)
- [Direct Patch File](https://patch-diff.githubusercontent.com/raw/magewirephp/magewire/pull/139.patch)

---

📄 License
---------

[](#-license)

This project is licensed under the MIT License. See the [LICENSE](https://www.disrex.nl/LICENSE.txt) file for details.

---

👨‍💻 Support
-----------

[](#‍-support)

Have questions or want to collaborate? Open a discussion on [GitHub Discussions](https://github.com/disrex/magewire-backend/discussions).

[![Disrex T-Rex Mascot Waving](https://camo.githubusercontent.com/0a1d96fc85428e17ed07929697bfaed9febcfb16eb0795ad254073fb39f0e43a/68747470733a2f2f66696c65732e6469737265782e6e6c2f6469737265782d6368617261637465722e6769663f743d353732363933343235)](https://camo.githubusercontent.com/0a1d96fc85428e17ed07929697bfaed9febcfb16eb0795ad254073fb39f0e43a/68747470733a2f2f66696c65732e6469737265782e6e6c2f6469737265782d6368617261637465722e6769663f743d353732363933343235)

---

Sponsored by
------------

[](#sponsored-by)

  ![Disrex Logo](https://camo.githubusercontent.com/1455f7262559caa6782115851d69137d0490ff46a6e9bb4d9013beb365cfd2f9/68747470733a2f2f66696c65732e6469737265782e6e6c2f6c6f676f732f6c6f676f2d622e706e67)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance49

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~5 days

Total

4

Last Release

449d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8350dcd3e45974a03f63c2c9840f2469dd034d86765f5a1278f12e5d1cf1d01a?d=identicon)[rbouma](/maintainers/rbouma)

---

Top Contributors

[![rbouma](https://avatars.githubusercontent.com/u/14012592?v=4)](https://github.com/rbouma "rbouma (11 commits)")

### Embed Badge

![Health badge](/badges/disrex-magewire-backend-patcher/health.svg)

```
[![Health](https://phpackages.com/badges/disrex-magewire-backend-patcher/health.svg)](https://phpackages.com/packages/disrex-magewire-backend-patcher)
```

###  Alternatives

[symfony/runtime

Enables decoupling PHP applications from global state

74798.8M1.0k](/packages/symfony-runtime)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5344.1M564](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2124.7M203](/packages/drupal-core-project-message)[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

3014.6M26](/packages/vaimo-composer-patches)[sandersander/composer-link

Adds ability to link local packages for development with composer

98457.9k](/packages/sandersander-composer-link)[phpro/grumphp-shim

GrumPHP Phar distribution

294.7M340](/packages/phpro-grumphp-shim)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
