PHP Classes

PHP Musixmatch: Get details about music using the Musixmatch API

Recommend this page to a friend!
  Info   View files Example   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 40 All time: 10,859 This week: 524Up
Version License PHP version Categories
musixmatch 1.0MIT/X Consortium ...5PHP 5, Web services, Audio


This package can get details about music using the Musixmatch API.

It can send HTTP requests to the Web server of the Musixmatch API to perform operations related to music and artists.

The package comes with an example to retrieve the top music artists of a country and searching for artists of a given country.

Picture of Mateo
  Performance   Level  
Name: Mateo <contact>
Classes: 23 packages by
Country: Peru Peru
Age: ???
All time rank: 20714 in Peru Peru
Week rank: 305 Up3 in Peru Peru Up
Innovation award
Innovation award
Nominee: 10x

Winner: 3x


<?php require __DIR__ . '/../vendor/autoload.php';


// Load api key from .env file
Musixmatch::SetApiKeyEnv(__DIR__); // or Musixmatch::SetApiKey('YOUR API KEY HERE');

 * Basic example
 * Musixmatch::Send('method_name', ['parameters']);

// Get the list of the top artists of a given country.
$response = Musixmatch::Send('chart.artists.get', [
'country' => 'it',
'page' => 1,
'page_size' => 2
]); // Return string

// Search for track in our database.
// See more in
$response = Musixmatch::Send('', [
'q_track' => '', // The song title
'q_artist' => 'justin bieber', // The song artist
'page' => 1, // Define the page number for paginated results
'page_size' => 2 // Define the page size for paginated results. Range is 1 to 100.
], true); // Return array


MusixMatch API

See examples in the examples folder

Get your api key in MusixMatch


git clone
composer install

  Files folder image Files  
File Role Description
Files folder imageexamples (2 files)
Files folder imagesrc (2 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file Doc. Documentation

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file .env Data Auxiliary data
  Accessible without login Plain text file Musix.php Example Example script

  Files folder image Files  /  src  
File Role Description
  Plain text file Musixmatch.php Class Class source
  Plain text file MusixmatchRequest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:10,859
This week:524Up