2017 © Pedro Peláez
 

library service-update

A service provider for the Phar Update library.

image

herrera-io/service-update

A service provider for the Phar Update library.

  • Saturday, March 23, 2013
  • by kherge
  • Repository
  • 0 Watchers
  • 0 Stars
  • 519 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Phar Update Service

Build Status, (*1)

A service provider for the Phar Update library., (*2)

Summary

Integrates the Phar Update library into the Herrera.io service container., (*3)

Installation

Add it to your list of Composer dependencies:, (*4)

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

Usage

<?php

use Herrera\Service\Container;
use Herrera\Service\Update\UpdateServiceProvider;

$container = new Container();
$container->register(new UpdateServiceProvider(), array(
    'update.url' => 'https://example.com/manifest.json'
));

/** @var $manager Herrera\Phar\Update\Manager */
$manager = $container['update.manager'];

/** @var $manifest Herrera\Phar\Update\Manifest */
$manifest = $container['update.manifest'];

/**
 * Updates the running Phar.
 *
 * @param string  $version The current version.
 * @param boolean $major   Lock to current major version?
 * @param boolean $pre     Allow updates to pre-releases?
 */
$callable = $container['update'];

The Versions

23/03 2013

dev-master

9999999-dev http://herrera-io.github.com/php-service-update

A service provider for the Phar Update library.

  Sources   Download

MIT

The Requires

 

The Development Requires

service update phar

23/03 2013

1.0.3

1.0.3.0 http://herrera-io.github.com/php-service-update

A service provider for the Phar Update library.

  Sources   Download

MIT

The Requires

 

The Development Requires

service update phar

23/03 2013

1.0.2

1.0.2.0 http://herrera-io.github.com/php-service-update

A service provider for the Phar Update library.

  Sources   Download

MIT

The Requires

 

The Development Requires

service update phar

22/03 2013

1.0.1

1.0.1.0 http://herrera-io.github.com/php-service-update

A service provider for the Phar Update library.

  Sources   Download

MIT

The Requires

 

The Development Requires

service update phar

22/03 2013

1.0.0

1.0.0.0 http://herrera-io.github.com/php-service-update

A service provider for the Phar Update library.

  Sources   Download

MIT

The Requires

 

The Development Requires

service update phar