shyim / store-plugin-installer
该包已被废弃且不再维护。未建议替代包。
自动安装来自商店定义的插件的使用 Composer 的插件
0.3.1
2019-09-11 12:36 UTC
Requires
- php: ^7.0.0
- composer-plugin-api: ^1.0.0
- ext-curl: *
- ext-json: *
- ext-zip: *
- vlucas/phpdotenv: ~2.0 || ~3.3
Requires (Dev)
- composer/composer: ^1.6
- mikey179/vfsstream: ^2.0@dev
- phpunit/phpunit: ^6
README
已废弃
请使用原生的 composer 仓库 https://packages.friendsofshopware.com/ 代替
您需要什么?
- Shopware Composer 安装
- Shopware 账户凭证
- PHP 7.0 或更高版本
- 普通域名,而非 通配符
设置
在您的 composer.json 中额外部分添加插件
示例 composer.json
{ "name": "shopware/composer-project", "description": "Project template for Shopware projects with composer", "type": "project", "license": "MIT", "authors": [ { "name": "Shopware", "email": "info@shopware.com" } ], "autoload": { "classmap": [ "app/AppKernel.php" ] }, "require": { "php": "^5.6.4||^7.0", "composer/installers": "^1.0", "shopware/shopware": "^5.4", "vlucas/phpdotenv": "~2.0 || ~3.3", "shyim/store-plugin-installer": "dev-master" }, "extra": { "installer-paths": { "Plugins/Local/Backend/{$name}/": ["type:shopware-backend-plugin"], "Plugins/Local/Core/{$name}/": ["type:shopware-core-plugin"], "Plugins/Local/Frontend/{$name}/": ["type:shopware-frontend-plugin"] }, "plugins": { "production": { "SwagPaymentPaypal": "3.4.5" } } }, "include-path": [ "engine/Library/" ], "config": { "optimize-autoloader": true, "process-timeout": 0 }, "scripts": { "post-root-package-install": [ "./app/post-install.sh" ], "post-install-cmd": [ "./app/post-install.sh" ], "post-update-cmd":[ "./app/post-update.sh" ] } }
设置以下环境变量
- ACCOUNT_USER (Shopware 用户)
- ACCOUNT_PASSWORD (Shopware 密码)
- SW_STORE_PLUGIN_INSTALLER_SILENTFAIL (错误时不要抛出异常 / 默认: `false``)
安装 composer 插件
composer require shyim/store-plugin-installer
然后插件应该被安装
常见问题解答
BinariesException-14
原因可能是
- 您尚未登录
SHOP_URL
环境变量不等于账户的来源
版本
版本可以是约束或确切版本