PHPackages                             atomescrochus/laravel-musixmatch - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. atomescrochus/laravel-musixmatch

AbandonedArchivedLibrary

atomescrochus/laravel-musixmatch
================================

Search the Musixmatch API with cache support

0.2.1(8y ago)454MITPHPPHP ~7.0

Since Feb 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/atomescrochus/laravel-musixmatch)[ Packagist](https://packagist.org/packages/atomescrochus/laravel-musixmatch)[ Docs](https://github.com/atomescrochus/laravel-musixmatch)[ RSS](/packages/atomescrochus-laravel-musixmatch/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

Search the Musixmatch API with cache support
============================================

[](#search-the-musixmatch-api-with-cache-support)

[![Latest Stable Version](https://camo.githubusercontent.com/46542452b1d48df891d403a8f2bb514347ab0cb8d3d521f2e83f0a46bd9b05b4/68747470733a2f2f706f7365722e707567782e6f72672f61746f6d657363726f636875732f6c61726176656c2d6d757369786d617463682f762f737461626c65)](https://packagist.org/packages/atomescrochus/laravel-musixmatch)[![License](https://camo.githubusercontent.com/8363cf3e68660146c62118fa5f1c9174e5e365eb0af5c21da130a513bf79c4b3/68747470733a2f2f706f7365722e707567782e6f72672f61746f6d657363726f636875732f6c61726176656c2d6d757369786d617463682f6c6963656e7365)](https://packagist.org/packages/atomescrochus/laravel-musixmatch)[![Total Downloads](https://camo.githubusercontent.com/2147fff823540e3ed78e766f07814f09505d747dbba9f10aff268511299a4a6d/68747470733a2f2f706f7365722e707567782e6f72672f61746f6d657363726f636875732f6c61726176656c2d6d757369786d617463682f646f776e6c6f616473)](https://packagist.org/packages/atomescrochus/laravel-musixmatch)

The `atomescrochus/laravel-musixmatch` package provide and easy way to search the Musixmatch API from any Laravel &gt;= 5.3 application.

This package is **NOT** usable in production, and should still be considered a work in progress (*contribution welcomed!*). It requires PHP &gt;= `7.0`.

Install
-------

[](#install)

You can install this package via composer:

```
$ composer require atomescrochus/laravel-musixmatch
```

Then you have to install the package' service provider, *unless you are running Laravel &gt;=5.5* (it'll use package auto-discovery) :

```
// config/app.php
'providers' => [
    ...
    Atomescrochus\Musixmatch\MusixmatchServiceProvider::class,
];
```

You will have to publish the configuration files also if you want to change the default value:

```
php artisan vendor:publish --provider="Atomescrochus\Musixmatch\MusixmatchServiceProvider" --tag="config"
```

You are also required to put the values you can fetch in your Gracenote developer account in your .env files:

```
MUSIXMATCH_APIKEY=12345678

```

Usage
-----

[](#usage)

```
// here is an example query to search Musixmatch API
$search = new \Atomescrochus\Musixmatch\Musixmatch();
$results = $search->trackSearch('poker face', 'lady gaga')->results();

// or if you already have the track id and wants the lyrics
$lyrics = new \Atomescrochus\Musixmatch\Musixmatch();
$results = $lyrics->getLyrics(15476784)->results();

// you can change the default cache duration (of one day) like so
$lyrics->setCacheDuration(60); // in minutes

// If you ever find yourself that you want to check your local cache for a result, without actually polling the API:
$results = $lyrics->cacheOnly()->getLyrics(15476784)->results();

// In case you only want to check if the query exists in the cache, without actually pulling the data:
$existInCache = $lyrics->inCache()->getLyrics(15476784)->results(); // returns boolean
```

### Results

[](#results)

In the example above, what is returned in `$results` is an object containing: a collection of results; a count value for the results; raw response data; cache information, and the unformatted query sent to the API.

Tests
-----

[](#tests)

This is basically a wrapper around the API. We're assuming the Musixmatch API has been tested, and we won't make duplicated tests.

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Jean-Philippe Murray](https://github.com/jpmurray)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~118 days

Total

3

Last Release

3137d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1550428?v=4)[Jean-Philippe Murray](/maintainers/jpmurray)[@jpmurray](https://github.com/jpmurray)

---

Top Contributors

[![jpmurray](https://avatars.githubusercontent.com/u/1550428?v=4)](https://github.com/jpmurray "jpmurray (15 commits)")[![svenluijten](https://avatars.githubusercontent.com/u/11269635?v=4)](https://github.com/svenluijten "svenluijten (1 commits)")

---

Tags

api-wrapperlaravellaravel-5-packagemusixmatchmusixmatch-apimusicatomescrochuslaravel-musixmatchmusixmatch

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/atomescrochus-laravel-musixmatch/health.svg)

```
[![Health](https://phpackages.com/badges/atomescrochus-laravel-musixmatch/health.svg)](https://phpackages.com/packages/atomescrochus-laravel-musixmatch)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aerni/laravel-spotify

A Laravel wrapper for the Spotify Web API

209145.6k](/packages/aerni-laravel-spotify)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
