Skip to content
duck7000 edited this page Aug 7, 2024 · 1 revision

Description of the working

You can use this class to fetch all data from a musicBrainz artist

Calling the class

Call the class with a artist ID (arid) $music = new \Music\Artist("66c662b6-6e2f-4930-8610-912e24c63ed1");

fetchArtistBio

This will fetch all biography info from an artist/group
@param string $artistId Artist id (for example found with the search method)
$results = $music->fetchArtistBio();
@return Data[] array of all available data from this artist or group
array

 [name]             (string) Artist or group name
 [id]               (string) Artist or group Id
 [type]             (string) Artist or group type e.g person or group
 [gender]           (string) Artist gender
 [disambiguation]   (string) Artist or group description
 [lifespan]         (array)  Artist or group life span
        [begin]     (string) Artist or group begin date
        [end]       (string) Artist or group end date
        [ended]     (boolean) True indicates if the group or artist is ended/died
 [area] (array) area of this artist
        [id]   (string) area id
        [name] (string) city
 [areaBegin] (array) Begin area of this artist 
        [id]   (string) area id
        [name] (string) city
 [areaEnd] (array) End area of this artist
        [id]   (string) area id
        [name] (string) city
 [aliases] => array
        [name]   (string) Alias name
        [type]   (string) Alias hint/type
        [begin]  (string) Alias begin date
        [end]    (string) Alias end date
        [locale] (string) Alias locale country code

Clone this wiki locally