Skip to content

Expert Answers to Your Magento, Shopify & Shopware Questions

Vendor-neutral, engineer-written explanations. Clear definitions first, then practical steps with real examples — no fluff.

Stagebit builds and maintains stores on Magento, Adobe Commerce, Shopify, Shopware, and Laravel, and this library holds the questions our own engineers get asked most often on each platform.

What is Magewire and why does Hyvä Checkout use it?

SB
Written by Stagebit Engineering Team
Updated August 2026 3 min read Verified by engineers

Magewire is a Magento port of Laravel Livewire. It lets a PHP component update its own template through an Ajax request. A developer never writes custom JavaScript for that interaction. Hyvä Checkout runs on Magewire because it lets the checkout stay reactive without loading a heavy JavaScript framework. That choice matches Hyvä’s whole approach to the Magento frontend.

Quick answer

Magewire is open source software under the MIT license. Willem Poortman maintains it independently of Hyvä, under the magewirephp organization on GitHub. Magewire brings Laravel Livewire’s approach to Magento. A PHP class exposes its properties and methods directly to the browser. Every change triggers a server round trip and a template re-render, instead of a full page reload. Hyvä Checkout is a separate paid product from the free Hyvä Theme. It uses Magewire as its component engine. Alpine.js handles small interactions, and Tailwind handles styling. That stack replaces the Knockout.js and RequireJS stack the native Magento checkout runs on.

How Magewire actually works

A Magewire component pairs a PHP class with a .phtml template. A developer declares it through layout XML. A developer can turn any Magento block into one. Once a component sits on the page, it renders normally on first load, like any other Magento block. After that, every interaction sends an Ajax call to that specific component. A click, a dropdown change, or a field entry all work the same way. Magewire skips the full page reload and skips routing through a JavaScript framework’s virtual DOM.

On the server, Magewire invokes the matching method or updates the matching property. It re-renders the component’s template and returns the new HTML to the browser. Optional lifecycle hooks let a component run logic before or after that update. Components can also pass messages to each other. The developer writes PHP the same way they already write Magento blocks and view models. The interaction logic itself needs no separate JavaScript API.

Why Hyvä Checkout is built this way

Hyvä’s theme philosophy strips out Magento’s default Knockout.js and RequireJS-heavy frontend wherever possible. It replaces that frontend with Alpine.js, Tailwind CSS, and server-rendered PHP. A checkout ranks among the most interaction-heavy pages on a storefront. Shipping changes, coupon codes, address validation, and payment switching all need to update the page instantly. Magewire gives Hyvä a way to handle that reactivity in PHP instead of a client side framework. This keeps the JavaScript payload small. It also keeps checkout logic in the same language and Magento layout system developers already use across the rest of the store.

In Hyvä Checkout specifically, a checkout step pairs a PHP class with a template. Validation rules live in a declared rules array on the component. A developer adds custom fields the same way they add any other Magewire component field. That is different from Hyvä React Checkout, a separate community-maintained project that uses React instead. The Hyvä team builds their commercial checkout product on Magewire, not React.

What this means if you are evaluating Hyvä Checkout

Magewire is open source and already ships as a dependency of Hyvä Theme. Adopting Hyvä Checkout does not add a new licensing layer for the framework itself. It only adds a license for the checkout module. Development on it looks like ordinary Magento PHP development. Magewire handles the Ajax layer for you, so the work stays out of frontend framework territory. If your team writes Magento blocks and view models comfortably but has avoided the Knockout.js checkout layer, Magewire closes that gap. The reactivity comes from PHP, not from a bundled JavaScript framework, and a Magento developer can extend it using skills they already have.

Was this answer helpful?

Your feedback helps us improve our answers.

Still need help?

Talk to our Hyvä experts

We build Hyvä storefronts for Magento and Adobe Commerce brands that want Alpine.js speed without losing the flexibility of a full Magento backend.

Talk to Hyvä Experts