cylab / phar-update
A library for self-updating Phars.
3.0.2
2020-05-13 05:49 UTC
Requires
- php: >=5.3.3
- cylab/json: ^3.0.0
- herrera-io/version: 1.*
Requires (Dev)
- mikey179/vfsstream: 1.1.0
- phpunit/phpunit: ^8.4
README
A library for self-updating Phars.
This is a fork from abandonned project https://github.com/kherge-abandoned/php-phar-update
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 cylab/phar-update
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);