joonlabs / package-modernyze
Package that supports the connection to a Modernyze update server.
Installs: 334
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/joonlabs/package-modernyze
Requires
- php: >=8.0
- ext-curl: *
- ext-zip: *
- illuminate/support: ^8.0|^9.0
Requires (Dev)
- phpunit/phpunit: ^9.3.3
This package is auto-updated.
Last update: 2025-09-23 23:35:31 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());