inkvizytor/phar-update

将Phar Update集成到Symfony控制台。

v2.2.2 2022-05-06 09:47 UTC

This package is not auto-updated.

Last update: 2024-09-12 19:58:13 UTC


README

Build Status

摘要

使用Phar Update库来

  1. 检查Phar的新版本
  2. 下载Phar
    • 通过SHA1校验和(如果有的话)公钥验证下载
  3. 用下载的更新替换正在运行的Phar

安装

将其添加到Composer依赖列表中

$ composer require deployer/phar-update

使用方法

use Deployer\Component\PharUpdate\Console\Command;
use Deployer\Component\PharUpdate\Console\Helper;
use Symfony\Component\Console\Application;

$command = new Command('update');
$command->setManifestUri('https://deployer.org/manifest.json');

$app = new Application();
$app->getHelperSet()->set(new Helper());
$app->add($command);