A PHP implementation of WMG's Web API.
- Helper methods for all API methods:
- Search by artists name.
- Search by tour name.
- Search by location.
- PSR-4 autoloading support.
- PHP 5.4.1 or greater.
- PHP cURL extension (Usually included with PHP).
Add wmg-web-api
as a dependency to your composer.json:
"require": {
"realdark/wmg-web-api": "dev-master"
}
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
MIT license. Please see LICENSE.md for more information.