定制 magewirephp/magewire 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

magewirephp/magewire

最新稳定版本:3.0.0-beta.1

Composer 安装命令:

composer require magewirephp/magewire

包简介

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

README 文档

README

⚠️ BETA WARNING: The main branch contains the beta version of MagewirePHP v3. For stable v1 documentation and releases, please switch to the 1.x branch.

Latest Stable Version Total Downloads style CI License

MagewirePHP brings the power of reactive, server-driven UI development to Magento 2—without writing JavaScript. Inspired by Laravel Livewire, MagewirePHP lets you build dynamic, interactive frontend components using only PHP, fully integrated with Magento’s architecture.

Whether you're creating real-time search, dynamic product forms, or interactive checkout steps, MagewirePHP enables a clean, component-based approach that stays true to Magento’s conventions while simplifying complex frontend behavior.

  • ✅ Write less JavaScript
  • ✅ Maintain component logic in PHP
  • ✅ Ideal for dynamic UIs like filters, modals, and configurators

MagewirePHP helps you deliver modern UX experiences in Magento—faster, cleaner, and with less frontend overhead.

Discord

Documentation

Sponsors

Vendic Zero 1

Click here to start sponsoring.

Installation

To install Magewire in your Magento 2 project, follow these steps:

  1. Require Magewire via Composer:
    composer require magewirephp/magewire
  2. Enable the module:
    bin/magento module:enable Magewirephp_Magewire
  3. Enable the theme compatibility module (determined per theme, in this case Hyvä):
    bin/magento module:enable Magewirephp_MagewireCompatibilityWithHyva
  4. Run the setup upgrade command:
    bin/magento setup:upgrade
  5. Deploy static content (when in production mode):
    bin/magento setup:static-content:deploy
  6. Flush the cache:
    bin/magento cache:flush

Code

Styles

To run styles, follow these steps:

  1. Install packages:
npm ci
  1. Run styles:
npx @tailwindcss/cli -i ./styles/magewire.css -o ./src/view/base/web/css/magewire.css --optimize

Use the --watch flag to re-compile on template changes.

Contributing

Thank you for considering contributing to Magewire! Please read the contribution guide to know how to behave, install and use Magewire for contributors.

Code of Conduct

In order to ensure that the Magewire is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Magewire, please create a merge request or an discussion. All security vulnerabilities will be promptly addressed.

License

Copyright © Willem Poortman

Magewire is open-sourced software licensed under the MIT license.

It's important to emphasize that this package is completely independent of any business entities. There is absolutely no involvement or interference from other companies expressing their preferences. This package is created by the community, for the community, ensuring its integrity and unbiased nature.

统计信息

  • 总下载量: 988.26k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 249
  • 点击次数: 1
  • 依赖项目数: 31
  • 推荐数: 0

GitHub 信息

  • Stars: 248
  • Watchers: 15
  • Forks: 46
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04