realdark/wmg-web-api

A PHP implementation of WMG's Web API

1.3.4 2015-10-10 00:16 UTC

This package is not auto-updated.

Last update: 2024-04-13 15:50:26 UTC


README

A PHP implementation of WMG's Web API.

It includes the following

  • Helper methods for all API methods:
  • Search by artists name.
  • Search by tour name.
  • Search by location.
  • PSR-4 autoloading support.

Requirements

  • PHP 5.4.1 or greater.
  • PHP cURL extension (Usually included with PHP).

Installation

Add wmg-web-api as a dependency to your composer.json:

"require": {
    "realdark/wmg-web-api": "dev-master"
}

Examples

Get all tours by an artist

$tours = WmgWebApi::searchForArtistEvents("eminem");

Search for tour by his name

$tours = WmgWebApi::searchForTour("His Name Is Eminem");

Get all tours by an country name

$tours = WmgWebApi::searchForCountryEvents("us");

All responses are objects

License

MIT license. Please see LICENSE.md for more information.