herrera-io/phar-update

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

A library for self-updating Phars.

Maintainers

👁 kherge

Package info

github.com/kherge-archive/php-phar-update

Homepage

Issues

pkg:composer/herrera-io/phar-update

Statistics

Installs: 4 482 219

Dependents: 30

Suggesters: 0

Stars: 121

2.0.0 2013-11-09 17:13 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 15643c90d3d43620a4f45c910e6afb7a0ad4b488

updatephar

This package is not auto-updated.

Last update: 2021-12-07 01:35:13 UTC


README

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