2017 © Pedro Peláez
 

library phpuphar

Library to self update your phar file

image

00f100/phpuphar

Library to self update your phar file

  • Monday, October 3, 2016
  • by 00F100
  • Repository
  • 1 Watchers
  • 1 Stars
  • 245 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 3 % Grown

The README.md

PHPUPhar

Library to self update your Phar package, (*1)

Installation

$ composer require 00f100/phpuphar

or add in your composer.json, (*2)

"require": {
    "00f100/phpuphar": "*"
},

Usage

# Url to view current VERSION in GIT
$urlUpdate = array(
    'base' => 'https://example.com',
    'path' => '/path/to/version',
);

# Version current
$version = '1.0.0';

# Url to download Phar file
$urlDownloadPhar = 'https://github.com/00F100/phpatr/raw/master/dist/phpatr.phar';

# Name of phar file
$namePhar = 'example.phar';

# New instance of PHPUPhar
use PHPUPhar\PHPUPhar;
$selfUpdate = new PHPUPhar($urlUpdate, false, $version, $urlDownloadPhar, $namePhar);

# Test number of version
if ($version != $selfUpdate->getVersion() && $selfUpdate->update()) {
    # Your version has updated ...
}

The Versions

03/10 2016

dev-master

9999999-dev https://github.com/00f100/phpuphar

Library to self update your phar file

  Sources   Download

The Requires

 

The Development Requires

php update phar self

03/10 2016

0.7.0

0.7.0.0 https://github.com/00f100/phpuphar

Library to self update your phar file

  Sources   Download

The Requires

 

The Development Requires

php update phar self

26/09 2016

0.6.0

0.6.0.0 https://github.com/00f100/phpuphar

Library to self update your phar file

  Sources   Download

The Requires

 

The Development Requires

php update phar self

25/09 2016

0.1.0

0.1.0.0 https://github.com/00f100/phpuphar

Library to self update your phar file

  Sources   Download

The Requires

 

The Development Requires

php update phar self