Loki_Magewire

This is an add-on package for adding Magewire components to the LokiComponents architecture.

Magewire and LokiComponents are two very different frameworks, even though they both work with AlpineJS and are added on top of Magento 2. Magewire focuses on bringing Laravel Livewire to Magento, with its complete feature set. This allows you to build rich UI components while not focussing much upon JavaScript. LokiComponents focuses purely on form elements that should be synced with AJAX and which should update other HTML targets on the page. It focuses more on modularity and extensibility then ease-of-use, even though you could put together a LokiComponent without needing to write JavaScript and with just a few steps. Magewire and LokiComponents are not the same. However, you could still combine both.

This module allows you to build client-side LokiComponents (including validation, filtering and more) while syncing to a backend Magewire PHP component via Magewire.find(). The benefit is that you can a Magewire backend component while benefiting from client-side LokiComponent behaviour. The LokiComponent feature of bundled HTML updates is not available though.

Note that in the LokiCheckout, you can simply also add a block that is driven both client-side and server-side by Magewire. There is no requirement for a field to be a LokiComponent.

Installation

Install this package via composer:

composer require loki/magento2-magewire

Next, enable this module:

bin/magento module:enable Loki_Magewire
WARNING: This module has no releases yet. If you want to use it, make sure to add the version @dev to the composer command.

Support

For getting support, create an Issue under the following project URL:

https://github.com/LokiExtensions/Loki_Magewire

Module Dependencies

The following dependencies are declared in the module its `etc/module.xml` file:

Loki_Components Magewirephp_Magewire
Composer details
Magento module name
Loki_Magewire
Composer name
loki/magento2-magewire
Composer version
No release yet
Default branch
main
Requirements
magento/framework: ^103.0
loki/magento2-components: ^2.0
Releases
dev-main 20 August 2025
Changelog

Last modified: July 22, 2025