PHPackages                             dcynsd/music - 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. dcynsd/music

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

dcynsd/music
============

A get music list SDK

0.0.3(7y ago)18MITPHPPHP ^7.1.3

Since Jan 18Pushed 7y agoCompare

[ Source](https://github.com/dcynsd/music)[ Packagist](https://packagist.org/packages/dcynsd/music)[ RSS](/packages/dcynsd-music/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

 Music
=======

[](#-music-)

 一个简易的获取网易云音乐歌单的扩展.

[![Build Status](https://camo.githubusercontent.com/da4894b68e78e303ce194d720c7f36429da248cbc95652554ca3f40908ff209c/68747470733a2f2f7472617669732d63692e6f72672f6463796e73642f6d757369632e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dcynsd/music)[![StyleCI build status](https://camo.githubusercontent.com/6ee3764c7aedb4a8ffef5bcd961f11bb3e919038b34bee6daaa49350b00d9826/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3136363139333338382f736869656c64)](https://camo.githubusercontent.com/6ee3764c7aedb4a8ffef5bcd961f11bb3e919038b34bee6daaa49350b00d9826/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3136363139333338382f736869656c64)

安装 ```
$ composer require dcynsd/music -vvv

```

配置
--

[](#配置)

在使用本扩展之前，你需要去 网易云音乐 获取到需要的 歌单 ID。

使用
--

[](#使用)

```
use Dcynsd\Music\Music;

$music = new Music();

$songList = $music->getSongList('168176594');

```

示例：

```
{
    {
        "id": 65766,
        "name": "富士山下",
        "artist": "陈奕迅",
        "url": "https:\/\/music.163.com\/song\/media\/outer\/url?id=65766.mp3",
        "cover": "http:\/\/p1.music.126.net\/PcJq6i7zMcPgudejdn1yeg==\/109951163256302356.jpg",
        "lrc": null
    },
    {
        "id": 33162226,
        "name": "悟空",
        "artist": "戴荃",
        "url": "https:\/\/music.163.com\/song\/media\/outer\/url?id=33162226.mp3",
        "cover": "http:\/\/p1.music.126.net\/gn4pPKc_Wk3EyByfi86lUQ==\/3333719255417035.jpg",
        "lrc": null
    },
    {
        "id": 36990266,
        "name": "Faded",
        "artist": "Alan Walker,Iselin Solheim",
        "url": "https:\/\/music.163.com\/song\/media\/outer\/url?id=36990266.mp3",
        "cover": "http:\/\/p1.music.126.net\/8dzD62VK8jLDbhEqkmpIAg==\/18277181788626198.jpg",
        "lrc": null
    }
}

```

参数说明
----

[](#参数说明)

```
getSongList(string $song_list_id, bool $lrc = false)

1. $song_list_id：歌单 ID
2. $lrc：是否需要歌词

```

在 Laravel 中使用
-------------

[](#在-laravel-中使用)

可以用两种方式来获取 Dcynsd\\Music\\Music 实例：

### 方法参数注入

[](#方法参数注入)

```
.
.
.
public function index(Music $music)
{
    $response = $music->getSongList('168176594');
}
.
.
.

```

### 服务名访问

[](#服务名访问)

```
.
.
.
public function index()
{
    $response = app('music')->getSongList('168176594');
}
.
.
.

```

License
-------

[](#license)

MIT

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

Unknown

Total

1

Last Release

2672d ago

### Community

Maintainers

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

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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