2017-25 © Pedro Peláez
 

library guildwars2-php-api

Wrapper around the Guild Wars 2 public API.

image

bramdevries/guildwars2-php-api

Wrapper around the Guild Wars 2 public API.

  • Sunday, March 29, 2015
  • by bramdevries
  • Repository
  • 0 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Guild Wars 2 PHP Api

Wrapper around the Guild Wars 2 public API., (*1)

The current version supports v1 of the Guild Wars 2 API., (*2)

Usage

The easiest way to instantiate is using the following snippet:, (*3)

$client = new GuildWars2\Client();

You can also set the locale., (*4)

$client = new GuildWars2\Client([
    'locale' => 'fr',
]); 

Once you have an instance you have access to all the endpoints., (*5)

$client->api('build')->build();

Available methods

Endpoint Method Parameters Example
build build none $client->api('build')->build()
colors colors none $client->api('colors')->colors()
files files none $client->api('files')->files()
files file string signature, int file_id $client->api('files')->file('943538394A94A491C8632FBEF6203C2013443555', 102478)
map continents none $client->api('map')->continents()
map maps none $client->api('map')->maps()
map mapes (optional) int map_id $client->api('map')->maps(15)
map floors int continent_id, int floor $client->api('map')->floors(1, 1)
map names none $client->api('map')->names()
wvw matches none $client->api('wvw')->matches()
wvw objectives none $client->api('wvw')->objectives()
wvw match string match_id $client->api('wvw')->match('2-2')
guild byId string guild_id $client->api('guild')->byId("75FD83CF-0C45-4834-BC4C-097F93A487AF")
guild byName string guild_name $client->api('guild')->byName("Veterans Of Lions Arch")
items items none $client->api('items')->items()
items item int item_id $client->api('items')->item(28445)
items skins none $client->api('items')->skins()
items skin int skin_id $client->api('items')->skin(1350)
items recipes none $client->api('items')->recipes()
items recipe int recipe_id $client->api('items')->recipe(1275)
events names none $client->api('events')->names()
events event (optional) string event_id $client->api('events')->event("4B212997-CEF0-4B2C-91BE-B787A6A32DE9")

The Versions

29/03 2015

dev-develop

dev-develop

Wrapper around the Guild Wars 2 public API.

  Sources   Download

MIT

The Requires

 

The Development Requires

16/08 2014

dev-master

9999999-dev

Wrapper around the Guild Wars 2 public API.

  Sources   Download

MIT

The Requires

 

The Development Requires

13/07 2014

1.0

1.0.0.0

Wrapper around the Guild Wars 2 public API.

  Sources   Download

MIT

The Requires

 

The Development Requires