ans-group/sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

ans-group/sdk

最新稳定版本:v2.1.0

Composer 安装命令:

composer require ans-group/sdk

包简介

ANS SDK for PHP

README 文档

README

Build Status MIT licensed

A PHP library for connecting your application(s) to the ANS APIs.

To use this package, you will need an ANS account. Sign up for free at ans.co.uk, and refer to the Getting Started section of our developer documentation for more information on consuming our APIs.

Installation

The recommended way to install this package is through composer.

composer require ans-group/sdk

Alternatively, you can download one of our tagged releases for manual installation, we don't recommend cloning the master branch for use in production environments as we cannot guarantee its stability.

This package does currently support PHP 5.6+, but we recommend moving to 7.1+ as soon as possible.

Usage

Each API has its own client class that extends from a base client class. All clients have an auth method which takes an API token to be used when sending requests.

Each client class has its own subclients, which can be accessed via methods on the base client.

Example

<?php

$client = (new \UKFast\SDK\eCloud\Client)->auth('API KEY');

$page = $client->vpcs()->getPage();

foreach ($page->getItems() as $request) {
    echo "#{$request->id} - {$request->name}\n";
}

Contributing

We welcome contributions that will benefit other users, please see CONTRIBUTING for details on how you can get involved.

License

This SDK is released under the MIT License

统计信息

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

GitHub 信息

  • Stars: 6
  • Watchers: 6
  • Forks: 17
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-01