php - 如何创建 Magento-2 扩展包以上传到 Magento-2 官方网站?

标签 php magento module composer-php magento2

我在 Magento-2 中开发了一个扩展。当在 Magento 官方网站上上传这个扩展时,他们会在包中发送一些错误。当我在生产模式下检查它时,它没有显示任何错误。请帮助我创建正确的 Magento-2 扩展包。

错误

Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for magento/magento2ce 2.0.13 -> satisfiable by magento/magento2ce[2.0.13].
- company/module-extensionname 1.0.0 requires magento/framework 100.1.* -> satisfiable by magento/framework[100.1.0-rc1, 100.1.0-rc2, 100.1.0-rc3, 100.1.0, 100.1.1, 100.1.2, 100.1.3, 100.1.4, 100.1.5, 100.1.6, 100.1.7].
- don't install magento/framework 100.1.0-rc1|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.0-rc2|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.0-rc3|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.0|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.1|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.2|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.3|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.4|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.5|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.6|remove magento/magento2ce 2.0.13
- don't install magento/framework 100.1.7|remove magento/magento2ce 2.0.13
- Installation request for comapny/module-extensionname 1.0.0 -> satisfiable by comapny/module-extensionname[1.0.0].


Installation failed, reverting ./composer.json to its original content.
[Pipeline] }
[Pipeline] // stage
[Pipeline] sh
[DockerOperationsPHP70Magento20CEVarnish] Running shell script
+ echo Failure

composer.json

{
  "name": "company/module-extensionname",
  "description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry.",
  "type": "magento2-module",
  "version": "1.0.0",
  "license": [
    "OSL-3.0",
    "AFL-3.0"
  ],
  "require": {
    "php": "~5.5.0|~5.6.0|~7.0.0",
    "magento/framework": "100.1.*"
  },
  "authors": [
    {
      "name": "Tomas Jindal",
      "email": "test@test.com",
      "homepage": "https://stackoverflow.com",
      "role": "Developer"
    }
  ],
  "autoload": {
    "files": [ "registration.php" ],
    "psr-4": {
      "company\\extensionname\\": ""
    }
  }
}

最佳答案

给出正确的扩展名例如你使扩展名是 Requestquote 并且您提供名称 RequestQuote 这在 magento 市场中是 Not Acceptable 。

点击下面的链接并制作 composer.json 文件

https://magento.stackexchange.com/questions/105533/how-to-create-extension-package-in-magento-2

关于php - 如何创建 Magento-2 扩展包以上传到 Magento-2 官方网站?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45101284/

相关文章:

php - Magento FPC Cache Warm 与用户组、wget、Lesti FPC

Magento,将网格行链接链接到其他模块

magento - 如何修改或删除Magento中的addSuccess消息?

c++ - 与 snprintf 和 size_t len 混淆

python - 在 Python 中导入模块的文件夹

php - 自动生成从 001 开始的序列号(仅适用于 3 位数字)- PHP/MYSQL

php - AWS elasticache 与 php 的连接问题

python - 使用替代模块满足 pip 要求

java - Android 应用程序进行 JSON 调用从服务器获取意外数据,但相同的调用在浏览器中有效

php - sql 更新查询未运行