prestashop/publish-on-marketplace
Composer 安装命令:
composer require prestashop/publish-on-marketplace
包简介
Publish extensions on the PrestaShop Marketplace
README 文档
README
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
prestashop/publish-on-marketplace 适用场景与选型建议
prestashop/publish-on-marketplace 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.25k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2020 年 08 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 prestashop/publish-on-marketplace 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 prestashop/publish-on-marketplace 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2.25k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-08-02