prestashop/publish-on-marketplace 问题修复 & 功能扩展

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

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

prestashop/publish-on-marketplace

最新稳定版本:v1.2

Composer 安装命令:

composer require prestashop/publish-on-marketplace

包简介

Publish extensions on the PrestaShop Marketplace

README 文档

README

PHP tests

This tool provide an way to upload new versions of extensions on the Marketplace, by using the seller API.

Quickstart

Installation

It may be installed separately from a project, by using the parameter global of a project.

$ composer global require prestashop/publish-on-marketplace

Usage

It requires the following parameters to make a successful upload:

Usage:
  prestashop:marketplace:publish [options]

Options:
      --api-key[=API-KEY]            API Key of the marketplace (Optional if environment variable MARKETPLACE_API_KEY is set)
      --changelog=CHANGELOG          Content of the changelog of the version to upload, or
      --changelog-file=CHANGELOG     Path to the changelog of the version to upload
      --metadata-json=METADATA-JSON  Path to Json file containing details of product
      --archive=ARCHIVE              Path to the archive to upload
      --update-type=UPDATE-TYPE      Type of upgrade (Minor update / Major / new) [default: "updatemin"]
      --debug                        Display additional details
      --dry-run                      Display actions to do without actually running them

Note --metadata-json and --archive needs to be valid paths to your files.

The Json content will be sent as parameters to the Marketplace API. The API signature can be found on Swagger. is an example of metadata Json file for the module ps_checkout:

{
    "id_product" : "46347",
    "technical_name" : "ps_checkout",
    "display_name" : "PrestaShop Checkout",
    "channel" : "stable",
    "product_type" : "module",
    "compatible_from" : "1.6.1.0"
}

An example of command is:

php ../publish-on-marketplace/bin/publish-on-marketplace --api-key=SomeKey --archive=$PWD/ps_checkout-9.9.9.zip --metadata-json=$PWD/metadata.json --changelog="New test release for tool"

Development

Install dependencies with composer. Two CI tools are configured for this project: php-cs-fixer and phpstan

composer install
php vendor/bin/php-cs-fixer fix --no-interaction --dry-run --diff
php phpstan analyse tests/phpstan/phpstan.neon

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2020-08-02