disrex / magewire-backend
Support Magewire in the Magento backend
Installs: 562
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 4
Type:magento2-module
pkg:composer/disrex/magewire-backend
Requires
- php: >=8.1
 - disrex/magewire-backend-patcher: ^1.0
 - magento/framework: ^102.0 | ^103.0
 - magewirephp/magewire: ^1.1
 - magewirephp/magewire-requirejs: ^1.1
 - symfony/http-foundation: ^5.4 || ^6.0 || ^7.0
 
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 dependencycomposer-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:
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:
- @jissereitsma (Jisse Reitsma)
 - @michielgerritsen (Michiel Gerritsen)