Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.
/ amend Public archive

A Symfony Console component helper and command set for updating and upgrading applications.

License

Notifications You must be signed in to change notification settings

box-project/amend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amend

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

About

A Symfony Console component helper and command set for updating and upgrading applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages