Skip to content

withgod/destiny2-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%