A PHP wrapper for the Destiny 2 API
Currently includes (mostly) just the clan endpoints, with user endpoints coming soon.
My intention is to make all object calls be JSON Serializable by implementing JsonSerializable()
composer require richard4339/destiny2-php
$client = new \Destiny\Client('[YOUR API KEY', 'OPTIONAL OAUTH TOKEN');
$clan = $client->getGroup(12345);
try {
$whoami = $client->getBungieUser(9999999999);
} catch (\Destiny\Exceptions\ClientException $x) {
}
$members = $client->getClanAdminsAndFounder(12345);
- Uses the GuzzleHTTP package
- Requires PHP 7.1
- Bungie API Key (get that here)
- For some calls, an OAuth token
If you need assistance with the Destiny API, there are a bunch of great resources maintained by a few wonderful community members!