Download the PHP package xgerhard/destiny-api-wrapper without Composer

On this page you can find all versions of the php package xgerhard/destiny-api-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package destiny-api-wrapper

Destiny2 PHP API wrapper

A PHP Client/API wrapper for the Destiny 2 API

Installation

Run the following command:

Usage

DestinyClient

Get your API-key here: https://bungie.net/en/application

Searching for a player

loadPlayer

If you store the player details in for example a database, you can load the Destiny\Player object by providing (at least) the player membershipType and membershipId.

Destiny\Player

CharacterCollection

The player characters are stored in a character collection. This collection can be queried to get the character data.

getAll()

Returns all characters

getCurrent()

Returns the current (last played) character

fetch()

To fetch characters a list of components needs to be provided, by default it will load and fetch them all (inventory, progression, activities etc.). To reduce the size of the Destiny\CharacterCollection object and probably speed up the code, you can manually provide these components.

Available components: https://bungie-net.github.io/multi/schema_Destiny-DestinyComponentType.html#schema_Destiny-DestinyComponentType

When fetch() is finished it will return all characters (function getAll()).

Destiny\Character

InventoryCollection

Characters have an inventory property, use the 'get' function to request inventory/equipment items. The first parameter is the identifier of the item, the second parameter is a boolean to include perk details.

The first parameter can be an array to request multiple items.

Manifest

The manifest is a database containing information about items/activities etc. you can query the database by using the hash of the item.

getManifest()

updateManifest()

To keep the database up to date, with for example new items, you can use this function to check for updates. If the response of the function is true, the manifest is either updated or already was up to date.

License

This Destiny API wrapper is open-sourced software licensed under the MIT license.


All versions of destiny-api-wrapper with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
guzzlehttp/guzzle Version ~6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package xgerhard/destiny-api-wrapper contains the following files

Loading the files please wait ....