disrex/magewire-backend

Support Magewire in the Magento backend

Installs: 366

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 3

Type:magento2-module

0.0.2 2025-03-25 20:31 UTC

This package is auto-updated.

Last update: 2025-08-14 09:02:06 UTC


README

Add Magewire functionality to the Magento Admin Panel. Built on top of the Magewire core with RequireJS support.

โš ๏ธ This project is in testing phase. Use at your own risk. Want to contribute? You're welcome!

โœ… Installation

Use the command below to automatically install everything (including patch for Magewire core):

composer require disrex/magewire-backend

Note: this module automatically adds the required patch to magewirephp/magewire, including the required dependency composer-patches.

Then, enable the modules:

bin/magento module:enable Magewirephp_Magewire Magewirephp_MagewireRequireJs Disrex_MagewireBackend

Magewire in the backend will only load when a component uses it. You can recognize this by loaded JavaScript files with the name magewire.

๐Ÿ”ง Auto-Patcher Included

This module includes the needed patches for Magewire to work in the backend, equipped with an auto-patcher module (disrex/magewire-backend-patcher: ^1.0) so you have no worries about which files to patch and where.

When you run composer install or composer update, you'll see these success messages:

Auto-Patcher CLI Output

This means the patches have been successfully applied and Magewire is ready for backend use! See the auto-patcher repository for more technical details.

๐Ÿงช Example Component

Want to test if everything works? Use an example module like this Hello World component:

composer config repositories.yireo-training vcs git@github.com:yireo-training/YireoTraining_MageWireBackendHelloWorld.git
composer require yireo-training/magento2-magewire-backend-hello-world:@dev
bin/magento module:enable YireoTraining_MageWireBackendHelloWorld

Or try:

๐Ÿง  Tip

Want to build your own component? Add a block via XML in the admin with a magewire argument that refers to your own Magewire component class.

๐Ÿ‘จโ€๐Ÿ’ป Support

Have questions or want to collaborate? Open a discussion on GitHub Discussions.

๐Ÿ™ Acknowledgments

This project is forked from michielgerritsen/magewire-backend.

Special thanks to:

Disrex T-Rex Mascot Waving

Sponsored by

Disrex Logo