kherge/amend

This package is abandoned and no longer maintained. No replacement package was suggested.

Integrates Phar Update to Symfony Console.

Maintainers

👁 kherge

Package info

github.com/box-project/amend

Homepage

pkg:composer/kherge/amend

Statistics

Installs: 328 182

Dependents: 8

Suggesters: 0

Stars: 42

Open Issues: 3

3.0.5 2016-04-05 18:59 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT b241482d0e8c37d3d0fd2f6865f28cd98268cc56

consoleupdatephar


README

👁 Build Status

Integrates Phar Update to Symfony Console.

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