staempfli/composer-installer
最新稳定版本:0.1.4
Composer 安装命令:
composer require staempfli/composer-installer
包简介
A simple composer installer
关键字:
README 文档
README
Magento Composer Installer based on AOEpeople/composer-installers
Description
This Composer installer is an adapted version of the AOEpeople/composer-installers so it fit our needs for deploying our Magento Projects.
Adaptions
It already provides the location paths as we need them, so no extra configuration is needed in project composer files.
protected $locations = array(
'module' => 'magento/.modman/{$name}/',
'source' => 'magento/'
);
It handles Magento version upgrades by backup the current magento installation before removing the directory, so no data is lost and can be restored if needed.
if($package->getType() === 'magento-source') {
$installPath = $this->getInstallPath($package);
$backupDate = date('YmdHi');
$backupPath = $installPath . '_' . $backupDate;
$this->filesystem->copyThenRemove($installPath, $backupPath);
$this->io->write(sprintf('Backup %s - %s', $backupPath, is_dir($backupPath) ? '<comment>created</comment>' : '<error>not created</error>'));
} else {
$repo->removePackage($package);
$installPath = $this->getInstallPath($package);
$this->io->write(sprintf('Deleting %s - %s', $installPath, $this->filesystem->removeDirectory($installPath) ? '<comment>deleted</comment>' : '<error>not deleted</error>'));
}
Support
If you have any issues with this extension, open an issue on GitHub.
Contribution
Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.
Developer
Staempfli Webteam and all other contributors
License
GNU General Public License, version 3 (GPLv3)
Copyright
(c) 2015, Stämpfli AG
统计信息
- 总下载量: 2.49k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2015-07-09