Uses the Phar Update library to:
- check for newer versions of the Phar
- download the Phar
- verify download by SHA1 checksum, and public key if available
- replace running Phar with downloaded update
Add it to your list of Composer dependencies:
$ 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);