arrowsphere / public-api-client
ArrowSphere 公共API的官方PHP客户端
0.11.11
2024-09-18 13:01 UTC
Requires
- php: >=8.0
- ext-curl: *
- ext-json: *
- guzzlehttp/guzzle: ^6.0 || ^7.0
- symfony/polyfill-php80: ^1.29
Requires (Dev)
- illuminate/validation: ^5.5 || ^6.0 || ^7.0
- kint-php/kint: ^5.1
- phpunit/phpunit: ^8.5.14 || ^9.3
- dev-master
- 0.11.11
- 0.11.10
- 0.11.9
- 0.11.8
- 0.11.7
- 0.11.6
- 0.11.5
- 0.11.4
- 0.11.3
- 0.11.2
- 0.11.1
- 0.11.0
- 0.10.14
- 0.10.13
- 0.10.12
- 0.10.11
- 0.10.10
- 0.10.9
- 0.10.8
- 0.10.7
- 0.10.6
- 0.10.5
- 0.10.4
- 0.10.3
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.7
- 0.9.6
- 0.9.5
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.0
- 0.7.2
- 0.7.1
- 0.7.0
- 0.6.3
- 0.6.2
- 0.6.1
- 0.6.0
- 0.5.0
- 0.4.15
- 0.4.14
- 0.4.13
- 0.4.12
- 0.4.11
- 0.4.10
- 0.4.9
- 0.4.8
- 0.4.7
- 0.4.6
- 0.4.5
- 0.4.4
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.1
- 0.3.0
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.2
- 0.1.1
- 0.1.0
- dev-release/0.11.11
This package is auto-updated.
Last update: 2024-09-18 13:02:13 UTC
README
本软件包提供了ArrowSphere云的公共API的PHP客户端。它应该是使用PHP代码调用ArrowSphere云API的唯一方式。
使用此软件包,您需要有效的ArrowSphere云访问权限以及有效的API密钥。
安装
使用以下命令安装最新版本:
$ composer require arrowsphere/public-api-client
基本用法
<?php use ArrowSphere\PublicApiClient\PublicApiClient; const URL = 'https://your-url-to-arrowsphere.example.com'; const API_KEY = 'your API key in ArrowSphere'; $client = (new PublicApiClient()) ->setUrl(URL) ->setApiKey(API_KEY) ->setDefaultHeaders([ 'myHeader' => 'myValue', ]) ; $whoami = $client->getWhoamiClient()->getWhoami(); echo "Hello " . $whoami->getCompanyName();