appsero/updater

Appsero客户端更新模块

v2.3.0 2024-09-06 04:30 UTC

This package is auto-updated.

Last update: 2024-09-06 04:33:52 UTC


README

版本 1.0.0

依赖项

首先您需要安装Appseo客户端

安装

您可以通过两种方式安装AppSero客户端更新器,通过composer和手动安装。

1. Composer安装

在您的项目(主题/插件)中添加依赖项

composer require appsero/updater

现在如果您还没有这样做,请将autoload.php添加到您的文件中。

require __DIR__ . '/vendor/autoload.php';

2. 手动安装

将仓库克隆到您的项目中。

cd /path/to/your/project/folder
git clone https://github.com/AppSero/updater.git updater
现在将依赖项包含到您的插件/主题中。
if (! class_exists('Appsero\Updater')) {
  require __DIR__ . '/updater/src/Updater.php';
}

用法

$client = new Appsero\Client( 'a4a8da5b-b419-4656-98e9-4a42e9044891', 'Akismet', __FILE__ );

// Active automatic updater
Appsero\Updater::init($client);