承接 wefabric/acronis-laravel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wefabric/acronis-laravel

Composer 安装命令:

composer require wefabric/acronis-laravel

包简介

Acronis API implementation for Laravel

README 文档

README

Simple implementation of the Acronis PHP library within Laravel

Installation

composer require wefabric/acronis-laravel

Usage

Register a third-party application as an API client via the management console of the cloud platform in Acronis. Copy the domain, client id and client secret and set them in the environment file as followed:

ACRONIS_URL=
ACRONIS_CLIENT_ID=
ACRONIS_CLIENT_SECRET=

Then it is possible to call the API as followed

    use Wefabric\Acronis\AcronisClient;
    use Wefabric\Acronis\UrlResolver;
    use Wefabric\AcronisLaravel\CachedCredentials;

    $credentials = CachedCredentials::make(config('acronis.client_id'), config('acronis.client_secret'));
    $urlResolver = new UrlResolver(config('acronis.domain_url'));

    $acronis = new AcronisClient($urlResolver, $credentials);
    $alertsResponse = $acronis->getClient()->get('/api/alert_manager/v1/alerts');

    $alertsResponse->json();

Config

To publish the config file, run the following command

php artisan vendor:publish --provider="Wefabric\AcronisLaravel\Providers\AcronisLaravelServiceProvider"

License

Wefabric Acronis Laravel is open-sourced software licensed under the MIT license.

统计信息

  • 总下载量: 22
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固