kherge / amend
Integrates Phar Update to Symfony Console.
Installs: 322 316
Dependents: 8
Suggesters: 0
Security: 0
Stars: 42
Watchers: 3
Forks: 4
Open Issues: 3
Requires
- php: >=5.3.3
- herrera-io/phar-update: ~2.0
- symfony/console: ^2.1|^3.0
Requires (Dev)
- herrera-io/box: ~1.0
- herrera-io/phpunit-test-case: 1.*
- phpunit/phpunit: 3.7.*
README
Integrates Phar Update to Symfony Console.
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 kherge/amend=3.*
Usage
<?php use KevinGH\Amend\Command; use KevinGH\Amend\Helper; use Symfony\Component\Console\Application; $command = new Command('update'); $command->setManifestUri('http://box-project.org/manifest.json'); $app = new Application(); $app->getHelperSet()->set(new Helper()); $app->add($command);