yuriyseriy/php-apple-music-api

PHP implementation of API client to MusicKit of Apple

This package's canonical repository appears to be gone and the package has been frozen as a result.

1.0.15 2017-08-25 14:05 UTC

This package is not auto-updated.

Last update: 2019-05-29 02:25:35 UTC


README

Storefronts

// Fetch a single storefront using its identifier.
$storefronts = $client->storefronts()->get(':id');

// Fetch multiple storefronts.
$storefronts = $client->storefronts()->get([':id', ':id', ':id']);

// Fetch all the storefronts in alphabetical order.
$storefronts = $client->storefronts()->all(':limit', ':offset');

Albums

// Fetch an album using its identifier.
$albums = $client->albums()->get(':id');

// Fetch one or more albums using their identifiers.
$albums = $client->albums()->get([':id', ':id', ':id']);

Music Videos

// Fetch a music video using its identifier.
$musicVideos = $client->musicVideos()->get(':id');

// Fetch one or more music videos using their identifiers.
$musicVideos = $client->musicVideos()->get([':id', ':id', ':id']);

Playlists

// Fetch a playlist using its identifier.
$playlists = $client->playlists()->get(':id');

// Fetch one or more playlists using their identifiers.
$playlists = $client->playlists()->get([':id', ':id', ':id']);

Songs

// Fetch a song using its identifier.
$songs = $client->songs()->get(':id');

// Fetch one or more songs using their identifiers.
$songs = $client->songs()->get([':id', ':id', ':id']);

Stations

// Fetch a station using its identifier.
$stations = $client->stations()->get(':id');

// Fetch one or more stations using their identifiers.
$stations = $client->stations()->get([':id', ':id', ':id']);

Artists

// Fetch an artist using its identifier.
$artists = $client->artists()->get(':id');

// Fetch one or more artists using their identifiers.
$artists = $client->artists()->get([':id', ':id', ':id']);

Curators

// Fetch a curator using its identifier.
$curators = $client->curators()->get(':id');

// Fetch one or more curators using their identifiers.
$curators = $client->curators()->get([':id', ':id', ':id']);

Activities

// Fetch an activity using its identifier.
$activities = $client->activities()->get(':id');

// Fetch one or more activities using their identifiers.
$activities = $client->activities()->get([':id', ':id', ':id']);

Apple Curators

// Fetch an Apple curator using its identifier.
$appleCurators = $client->appleCurators()->get(':id');

// Fetch one or more Apple curators using their identifiers.
$appleCurators = $client->appleCurators()->get([':id', ':id', ':id']);

Charts

// Fetch one or more charts.
$charts = $client->charts()->get(':types', ':chart', ':genre', ':limit', ':offset');

Genres

// Fetch all genres for the current top charts.
$genres = $client->genres()->top(':limit', ':offset');

// Fetch a genre using its identifier.
$genres = $client->genres()->get(':id');

// Fetch one or more genres.
$genres = $client->genres()->get([':id', ':id', ':id']);

Search

// Search the catalog using a query.
$search = $client->search()->query(':term', ':type', ':limit', ':offset');

// Fetch the search term results for a hint.
$searchHints = $client->search()->hints(':term', ':types', ':limit');