PHPackages                             canardev/music-links - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. canardev/music-links

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

canardev/music-links
====================

A library to get all music platform links, for artist or tracks.

1.2.0(2y ago)08MITPHPPHP &gt;=8.0

Since Jul 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/CanarDev/MusicLinks)[ Packagist](https://packagist.org/packages/canardev/music-links)[ RSS](/packages/canardev-music-links/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Documentation
=============

[](#documentation)

Explaination
------------

[](#explaination)

The aim of this project is to recover all artist and song links on all music streaming platforms.

Installation
------------

[](#installation)

```
 composer require canardev/music-links
```

Usage
-----

[](#usage)

To use the package, you need to create an instance of the Api class and call the method that you want to use. You need to pass the artist or track url as a parameter.

```
use Canardev\MusicLinks\Api;

$api = new Api();
$api->getArtistOrTrackLinks($artistOrTrackSpotifyURL, $CountryCode);
```

With for example:

```
$artistOrTrackSpotifyURL = 'https://open.spotify.com/artist/4gzpq5DPGxSnKTe4SA8HAU?si=1e2e2e2e2e2e2e2e';
$CountryCode = 'US';
```

For the CountryCode, we use the [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) standard for the country code.

Linter and tests
----------------

[](#linter-and-tests)

To run the linter and the tests, you need to run the following command:

```
 php vendor/bin/phpstan analyse src --level=8
```

```
php vendor/bin/php-cs-fixer fix src --rules=@PSR12
```

```
php vendor/bin/phpunit tests
```

License
-------

[](#license)

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

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

1045d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c5f54f970638756312c352f1fc6db6648b90098f294fa7f0ed106fe0c144fbf0?d=identicon)[CanarDev](/maintainers/CanarDev)

---

Top Contributors

[![CanarDev](https://avatars.githubusercontent.com/u/90461647?v=4)](https://github.com/CanarDev "CanarDev (4 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/canardev-music-links/health.svg)

```
[![Health](https://phpackages.com/badges/canardev-music-links/health.svg)](https://phpackages.com/packages/canardev-music-links)
```

PHPackages © 2026

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