joonlabs / package-modernyze
该软件包最新版本(v1.0.0)没有提供许可证信息。
支持连接到Modernyze更新服务器的软件包。
v1.0.0
2022-03-23 14:53 UTC
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: 2024-09-23 21:19:06 UTC
README
Modernyze是一个帮助您轻松连接到Modernyze更新服务器的软件包。
安装
composer require joonlabs/package-modernyze
示例
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());