withgod / destiny2-php

PHP Destiny 2 API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

destiny2-php

A PHP wrapper for the Destiny 2 API

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock Build Status

About

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()

Installation

Using Composer

composer require richard4339/destiny2-php

Usage

$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);

Requirements

Destiny API Resources

If you need assistance with the Destiny API, there are a bunch of great resources maintained by a few wonderful community members!

About

PHP Destiny 2 API

License:MIT License


Languages

Language:PHP 100.0%