Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Magewire Laravel Package

magewirephp/magewire

Magewire brings Livewire-style reactive components to Magento 2. Build dynamic, AJAX-powered storefront and admin UI with PHP components, Blade-like templates, state management, validation, and events—without custom JavaScript.

View on GitHub
Deep Wiki
Context7

A framework that makes building reactive and dynamic interfaces simple in Magento 2

Frequently asked questions about Magewire
Is magewirephp/magewire a Laravel package?
No. Magewire is a Magento 2 module, not a Laravel package: it depends on the Magento framework and a Hyvä/Alpine.js front end. It brings the Livewire component model to Magento 2 storefronts and admin UI. If your application is Laravel, the correct choice is Livewire itself, and Magewire should not be pulled into that dependency graph.
How do I install Magewire in a Magento 2 project?
Consume it with Composer like any other Magento module: run composer update magewirephp/magewire:3.7.2 --with-all-dependencies, then confirm the resolved version with composer show magewirephp/magewire. Projects that only use stock Magewire components need no application-code changes. If a root-level version constraint holds the resolved version below 3.7.2, raise that constraint as part of the upgrade.
Does Magewire work with Magento 2.4.x and Hyvä?
Yes. Magewire is designed for Magento 2.4.x with a Hyvä or Hyvä Checkout front end, where it pairs with Alpine.js to deliver reactive, AJAX-driven components written in PHP. It is not a fit for Luma/Blank themes or non-Magento stacks. Confirm your Magento and Hyvä versions before planning integration work, because a stack mismatch is the largest adoption risk.
What is security advisory GHSA-64j9-rg74-hqc7 and does it affect my store?
It is a High-severity advisory affecting Magewire 3.0.0 through 3.7.1, so essentially every 3.x deployment not already on 3.7.2 is in scope. The fix hardens browser-callable component methods, event-listener targets, framework lifecycle hooks, and lazy-loading placeholders. Read the full GHSA to establish exploit preconditions such as whether authentication is required, and treat internet-facing storefronts as remotely reachable until you have done so.
Will upgrading to Magewire 3.7.2 break my custom components?
Possibly, because 3.7.2 is a behavioural change rather than a pure patch. It restricts which component methods the browser and event listeners may invoke and reserves framework lifecycle hooks, so custom components that call inherited Magewire helpers or lifecycle hooks directly from JavaScript may break or be silently refused. Refactor those calls into a deliberate public application action that authorizes the operation and invokes the helper internally, as described in UPGRADING.md.
Why is Magewire pinned below 3.7.2 when I use Hyvä Checkout 1.4.0 beta?
Hyvä Checkout 1.4.0 beta pins Magewire transitively, so a Magewire-only Composer update cannot lift the resolved version to 3.7.2. The documented resolution is Hyvä Checkout 1.4.0-beta6, which was not yet released when this assessment was written. Assign an owner for the beta6 coordination and agree an interim mitigation rather than forcing an unsupported constraint override.
How do I check whether my composer.json blocks the Magewire security patch?
Run composer show magewirephp/magewire after the update and inspect the lockfile diff; it should contain Magewire and its transitive dependencies only. A root-level version pin is the usual reason a project resolves below 3.7.2, and it must be raised before the fix can land. Because agencies often maintain many Magento projects, scan every repository and lockfile rather than assuming which ones depend on Magewire.
Do I need to rebuild Docker images and CI previews after the Magewire update?
Yes, if your deployment images bake a Composer lockfile, editing composer.json alone does not ship the fix and image rebuilds are in scope. The vendor guidance explicitly names local, demo, and test environments alongside production, so treat this as a fleet-wide remediation. Also confirm which demo and CI preview environments are internet-reachable or carry real credentials, and prioritise those rebuilds.
What are alternatives to Magewire for reactive Magento 2 interfaces?
On Laravel the direct analogue is Livewire, which shares the same PHP-component and server-roundtrip model. On Magento 2 you can build interactive UI with Hyvä plus Alpine.js, or fall back to Knockout-based Luma components, and headless storefronts may use PWA Studio or a custom React/Vue front end. Magewire is the pragmatic choice when you want Livewire-style components inside an existing Magento 2 and Hyvä codebase without writing custom JavaScript.
How should I test Magewire components after the upgrade?
Run the project's existing test suite first, then do a manual smoke pass over every custom Magewire component, paying particular attention to anything triggered from JavaScript, event listeners, or lazy-loading placeholders. Verify that method calls the browser is no longer permitted to invoke have been moved behind an authorizing public action. Deploy through your normal Magento process and confirm the resolved version with composer show in each environment.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib