cylab/phar-update

一个用于自动更新Phars的库。

3.0.2 2020-05-13 05:49 UTC

This package is auto-updated.

Last update: 2024-09-13 18:03:00 UTC


README

pipeline status coverage report

一个用于自动更新Phars的库。

这是一个从已废弃的项目https://github.com/kherge-abandoned/php-phar-update的分支。

摘要

这个库处理将应用程序打包为可分发Phars的更新。模块化设计允许有更可定制的更新过程。

安装

将其添加到您的Composer依赖列表中

$ composer require cylab/phar-update

用法

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