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)08MITPHPPHP ^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 2w ago

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 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

2720d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/46182156?v=4)[dcynsd](/maintainers/dcynsd)[@dcynsd](https://github.com/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

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751284.3k37](/packages/civicrm-civicrm-core)[roundcube/roundcubemail

The Roundcube Webmail suite

7.0k1.4k3](/packages/roundcube-roundcubemail)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[nfse-nacional/nfse-php

This is my package nfse

1523.1k](/packages/nfse-nacional-nfse-php)

PHPackages © 2026

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