joonlabs/package-modernyze

There is no license information available for the latest version (v1.0.0) of this package.

Package that supports the connection to a Modernyze update server.

v1.0.0 2022-03-23 14:53 UTC

This package is auto-updated.

Last update: 2024-10-23 21:25:34 UTC


README

Modernyze is a package to help you easily connect to a Modernyze update server.

Installation

composer require joonlabs/package-modernyze

Example

use Modernyze\Facades\Modernyze;

// set up the connection
Modernyze::setUrl("https://distribution.example.com")
    ->setSecret("MY_SECRET");
    ->setToken("MY_TOKEN");

// check all products
$products = Modernyze::allProducts();

// get the latest version of a product
$latest = Modernyze::latestVersion("my-product");

// get information about a specific product version
$information = Modernyze::versionInformation("my-product", "1.0.0");

// download, verify and install this product version
Modernyze::update("my-product", "1.0.0", app_path());