Appsero Developers Guide
  1. Home
  2. Docs
  3. Appsero Developers Guide
  4. Appsero – Client
  5. Appsero – Client Updater
  1. Home
  2. Docs
  3. Appsero Developers Guide
  4. Appsero – Client
  5. Appsero – Client Updater

Appsero – Client Updater

Here are the steps to install Appsero Client Updater.

Dependency

At first, you need to install Appsero Client. In case you want a step by step process of installing the Appsero client, you can check this documentation.

Installation

You can install Appsero Client Updater in two ways, via composer or manually.

1. Composer Installation

Add dependency in your project (theme/plugin):

composer require appsero/updater

Now add autoload.php in your file if you haven’t done so already.

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

2. Manual Installation

  • Clone the repository in your project.
cd /path/to/your/project/folder
git clone https://github.com/AppSero/updater.git updater

Now include the dependencies in your plugin/theme.

if (! class_exists('Appsero\Updater')) {
  require __DIR__ . '/updater/src/Updater.php';
}

3. Usages

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

// Active automatic updater
Appsero\Updater::init($client);
Was this article helpful to you? Yes No

How can we help?