Download the PHP package bramdevries/guildwars2-php-api without Composer

On this page you can find all versions of the php package bramdevries/guildwars2-php-api. 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 guildwars2-php-api

Guild Wars 2 PHP Api

Wrapper around the Guild Wars 2 public API.

The current version supports v1 of the Guild Wars 2 API.

Usage

The easiest way to instantiate is using the following snippet:

You can also set the locale.

Once you have an instance you have access to all the endpoints.

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

All versions of guildwars2-php-api with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ~4.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 bramdevries/guildwars2-php-api contains the following files

Loading the files please wait ....