inviqa/magento-version-checker

确保已安装的 Magento 模块符合预期的 Magento 版本。

安装: 36

依赖项: 0

建议者: 0

安全性: 0

星星: 0

观察者: 23

分支: 1

开放性问题: 0

类型:composer-plugin

v0.2.1 2016-09-20 10:38 UTC

This package is not auto-updated.

Last update: 2024-09-18 19:23:30 UTC


README

确保已安装的 Magento 模块符合预期的 Magento 版本。

如何在项目中使用

运行以下命令以将其添加到您的 Magento 项目的 composer.json 中。

composer require inviqa/magento-version-checker

它会检查所有以下类型的包:"magento-module"。当匹配时,它会将当前版本(1.1x)和版本(企业版或社区版)的 Magento 与模块所需的 Magento 版本进行比较。

如何使用独立的 Magento 模块

运行以下命令以将其添加到您的 Magento 模块的 composer.json 中。

composer require 'inviqa/magento-version-checker=1.*'

您需要在额外部分中指定所需的 Magento 版本。您还可以指定所需的企业版和/或社区版。

"extra": {
    "magento-version-ee": "^1.12.0", // means >= 1.12.0 Enterpise Edition
    "magento-version-ce": "^1.9.0" // means >= 1.9.0 Community Edition
}

已知问题

当您第一次运行 composer install 时,可能会遇到以下错误。

[ErrorException]
  include(MagentoHackathon\Composer\Magento\Deploystrategy\.php): failed to open stream: No such file or directory

解决方案:再次运行 composer install

贡献

  • 通过以下命令克隆仓库 git clone git@github.com:inviqa/magento-version-checker.git
  • 创建一个分支 git checkout -b my_branch
  • 将您的分支推送到远程仓库 git push origin my_branch
  • 从您的分支创建一个 Pull Request,在提交信息/ Pull Request 中包含尽可能多的文档,遵循以下编写良好提交信息的指南
  • 这就完成了!

许可协议

Copyright:: 2015-2016 The Inviqa Group Ltd

See LICENSE file