• This repository has been archived on 26/Apr/2020
  • Stars
    star
    194
  • Rank 192,965 (Top 4 %)
  • Language
    PHP
  • License
    MIT License
  • Created about 8 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Integrates Phar Update to Symfony Console

Phar Update

Build Status

Summary

Uses the Phar Update library to:

  1. check for newer versions of the Phar
  2. download the Phar
    • verify download by SHA1 checksum, and public key if available
  3. replace running Phar with downloaded update

Installation

Add it to your list of Composer dependencies:

$ composer require deployer/phar-update

Usage

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);