deployer / phar-update
Integrates Phar Update to Symfony Console.
Installs: 11 845 839
Dependents: 6
Suggesters: 0
Security: 0
Stars: 163
Watchers: 4
Forks: 5
Open Issues: 1
Requires
- php: >=5.3.3
- symfony/console: ~2.7|~3.0|~4.0|~5.0
Requires (Dev)
- mikey179/vfsstream: 1.1.0
- phpunit/phpunit: 3.7.*
- symfony/process: ~2.7|~3.0|~4.0|~5.0
README
Summary
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
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);