TplBlock/vendor/herrera-io/phar-update
2018-03-26 21:57:35 +02:00
..
res permit fun with spaces 2018-03-26 21:57:35 +02:00
src permit fun with spaces 2018-03-26 21:57:35 +02:00
.gitignore permit fun with spaces 2018-03-26 21:57:35 +02:00
.travis.yml permit fun with spaces 2018-03-26 21:57:35 +02:00
composer.json permit fun with spaces 2018-03-26 21:57:35 +02:00
LICENSE permit fun with spaces 2018-03-26 21:57:35 +02:00
phpunit.xml.dist permit fun with spaces 2018-03-26 21:57:35 +02:00
README.md permit fun with spaces 2018-03-26 21:57:35 +02:00

Phar Update

Build Status

A library for self-updating Phars.

Summary

This library handles the updating of applications packaged as distributable Phars. The modular design allows for a more customizable update process.

Installation

Add it to your list of Composer dependencies:

$ composer require herrera-io/phar-update=1.*

Usage

<?php

use Herrera\Phar\Update\Manager;
use Herrera\Phar\Update\Manifest;

$manager = new Manager(Manifest::loadFile(
    'http://box-project.org/manifest.json'
));

// update to the next available 1.x update
$manager->update('1.0.0', true);