arrowsphere / public-api-client
The official PHP client for ArrowSphere's public API
Installs: 28 185
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 7
Forks: 20
Open Issues: 14
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.12
- 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.12
This package is auto-updated.
Last update: 2024-10-23 15:00:16 UTC
README
This package provides a PHP client for ArrowSphere Cloud's public API. It should be the only way to make calls to ArrowSphere Cloud's API with PHP code.
To use this package, you need valid access to ArrowSphere Cloud, with a valid API key.
Installation
Install the latest version with
$ composer require arrowsphere/public-api-client
Basic usage
<?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();