luka / magento-core-installer
通过 Composer 安装 Magento 核心组件
1.0.6
2016-06-20 11:41 UTC
Requires
- composer-plugin-api: ^1.0.0
- magento-hackathon/magento-composer-installer: *
README
此 composer 插件允许您通过从 http://www.magento.com/ 下载的方式安装 Magento 核心组件。您只需将 composer.json 文件添加到 zip 文件中,并添加一个存储库(例如 artifact、satis 等)。
magento 核心组件的 composer.json 示例
{ "name" : "magento/core", "version": "1.8.1.0", "description" : "Magento Core", "type" : "magento-core", "license" : "OSL-3.0", "keywords" : [ "magento" ], "require" : { "luka/magento-core-installer": "~1" } }
安装 Magento 实例的用法
{ "name" : "acme/my-magento-inst", "description" : "My Custom Magento Instance", "require" : { "magento/core": "1.9.*" }, "extra": { "magento-root-dir": "public/", "magento-separate-writable": true, "magento-writable-dir": "writable/", "magento-deploystrategy": "copy" } }
额外功能
- magento-root-dir [字符串]: Magento 安装目标路径(文档根目录)
- magento-separate-writable [布尔值]: 是否应使用单独的可写文件夹用于 var 和 media 目录
- magento-writable-dir [字符串]: 查找 var 和 media 目录的目录(符号链接目标)。