定制 yireo/magento2-theme-override-checker 二次开发

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

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

yireo/magento2-theme-override-checker

最新稳定版本:0.0.5

Composer 安装命令:

composer require yireo/magento2-theme-override-checker

包简介

N/A

README 文档

README

Magento module to find all files of a given Magento theme (for example Magento/luma), compare the found files with the parent theme (and/or modules) and return whether there are differences or not.

Current status: Beta, ready for trying out

Installation

composer require yireo/magento2-theme-override-checker:@dev bin/magento module:enable Yireo_ThemeOverrideChecker

Usage

List all possible overrides, with a warning for unneeded overrides (with no changes) and a red warning when lines are different:

bin/magento yireo:theme-overrides:check Magento/luma 

List all specific override details for a specific file:

bin/magento yireo:theme-overrides:show Magento/luma web/jquery.js bin/magento yireo:theme-overrides:show Magento/blank web/css/source/_theme.less

List a diff between the current version and the parent theme version:

bin/magento yireo:theme-overrides:diff Magento/luma web/css/source/_theme.less

FAQ

How does this work?

AmpersandHQ developed an excellent tool ampersand-magento2-upgrade-patch-helper to check the status of a current project. Part of this is that it also scans for override files in the theme. However, it does not report what overriding files actually means. For instance, is overriding an XML layout file good or bad? How many lines of overriding a JavaScript file classifies as a bad practice?

Todo

  • Support for multiple parent themes
  • Make contextLines in DifferGenerator configurable
  • Improve adviser
    • An XML layout file with dozens of line differences is ok
    • An XML override file is dangerous
    • An PHTML / JS / CSS file with dozens of line differences is dangerous
    • Markdown and text files can be the same
    • SVG files can be totally different

统计信息

  • 总下载量: 7k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 17
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 17
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固