openforgeproject/mageforge 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

openforgeproject/mageforge

Composer 安装命令:

composer require openforgeproject/mageforge

包简介

Magento 2 module for frontend workflow automation

README 文档

README

Mageforge Hero

Release License Downloads PHP

PHPUnit Coverage Mutation Score Functional Tests Magento Compatibility

PHPCS Static Analysis Lint

MageForge is a powerful CLI toolkit for Magento 2 front-end development. It simplifies theme building workflows, supports multiple theme types (Magento Standard, Hyvä, TailwindCSS, custom), and includes developer tools like the Frontend Inspector.

Table of Contents

Contributor? Jump to the Development Guide.

Requirements

  • Magento 2.4.7+ (tested on 2.4.7-p10, 2.4.8-p5, 2.4.9)
  • PHP 8.3+
  • Node.js (LTS recommended)
  • Composer

Supported Theme Types

Mageforge Hero

Theme Type Support Status
Magento Standard ✅ Supported
Hyvä (TailwindCSS 3.x / 4.x) ✅ Supported
Hyvä Checkout ✅ Supported
Hyvä Fallback ✅ Supported
Custom TailwindCSS (no Hyvä) ✅ Supported
Avanta B2B ✅ Supported
Your Custom Theme Create your own Builder

Installation

  1. Install via Composer:

    composer require openforgeproject/mageforge
  2. Enable the module:

    bin/magento module:enable OpenForgeProject_MageForge
    bin/magento setup:upgrade

Quick Start

# 1. List available themes
bin/magento mageforge:theme:list

# 2. Build a theme
bin/magento mageforge:theme:build Magento/luma

# 3. Watch for changes (development mode)
bin/magento mageforge:theme:watch Magento/luma

See Commands Reference for the full command list with options and examples.

Frontend Inspector

The MageForge Inspector lets you inspect Magento blocks, templates, and performance metrics directly in your browser.

Features:

  • Template paths, block classes, and module names
  • PHP render times and cache status (lifetime, tags)
  • Web Vitals: LCP, CLS, INP per element
  • Accessibility checks: ARIA roles, contrast ratios, alt text

Screenshot

Mageforge Toolbar

Enable:

bin/magento mageforge:theme:inspector enable

The Inspector can also be enabled in Admin: Stores > Configuration > MageForge > Frontend Inspector

Use in Browser:

  • Toggle: Ctrl+Shift+I (Windows/Linux) or Cmd+Option+I (macOS)
  • Hover over elements to inspect; click to lock on a specific block

Note: Requires Developer Mode. If not already active, run bin/magento deploy:mode:set developer.

Commands Reference

See the dedicated Commands Reference for complete documentation of all MageForge commands, including:

  • Theme commands (list, build, watch, clean, inspector)
  • Hyvä commands (tokens, compatibility:check)
  • System commands (version, check)
  • Options, arguments, and usage examples

Documentation

Get your Merch

Mageforge Hero

Support

Credits

MageForge uses the following third-party libraries:

Library Author License
Tabler Icons codecalm MIT

Special Thanks

A big thank you to e3n-team for their continuous support and collaboration in the further development of MageForge.

Your contributions have been invaluable!

Thank you for using MageForge!

openforgeproject/mageforge 适用场景与选型建议

openforgeproject/mageforge 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 712 次下载、GitHub Stars 达 20, 最近一次更新时间为 2025 年 11 月 14 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 openforgeproject/mageforge 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 openforgeproject/mageforge 我们能提供哪些服务?
定制开发 / 二次开发

基于 openforgeproject/mageforge 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 712
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 20
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 20
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2025-11-14