PHPackages                             yunzhiyike/suno-ai-sdk - 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. [API Development](/categories/api)
4. /
5. yunzhiyike/suno-ai-sdk

ActiveLibrary[API Development](/categories/api)

yunzhiyike/suno-ai-sdk
======================

This is an unofficial Suno API based on PHP; it provides support for all Suno interfaces.

v1.0.1(2y ago)12263MITPHP

Since Apr 3Pushed 2y ago2 watchersCompare

[ Source](https://github.com/YunzhiYike/Suno-SDK)[ Packagist](https://packagist.org/packages/yunzhiyike/suno-ai-sdk)[ RSS](/packages/yunzhiyike-suno-ai-sdk/feed)WikiDiscussions main Synced 2d ago

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

English | [中文](./README-CN.md) | [日本語](./README-JP.md)

[![suno Logo](img.png)](https://sunoai.ai/)

 [![Stable Version](https://camo.githubusercontent.com/511149e3a3f6954d6c26e98cdbd434c3408f73caa5d1649f542c6dc3e322b463/68747470733a2f2f706f7365722e707567782e6f72672f79756e7a686979696b652f73756e6f2d61692d73646b2f762f737461626c65)](https://github.com/YunzhiYike/Suno-SDK/releases) [![Php Version](https://camo.githubusercontent.com/3fe2b00a3b57acdbf9c6ee0890609712713224e8b654eff0d23e4a0ae3969828/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d382e302d627269676874677265656e2e7376673f6d61784167653d32353932303030)](https://www.php.net) [![dtm-client License](https://camo.githubusercontent.com/4d211cd5c08b6b464cd0f11df0fc3a36f23ad85fcd74b5c4909da173d57b278c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f79756e7a686979696b652f73756e6f2d61692d73646b2e737667)](https://github.com/YunzhiYike/Suno-SDK/main/LICENSE)

 [![Total Downloads](https://camo.githubusercontent.com/18b9ad14959e3cb4306b177f913e597b58538232303340bd18fb87cb4804f9c1/68747470733a2f2f706f7365722e707567782e6f72672f79756e7a686979696b652f73756e6f2d61692d73646b2f646f776e6c6f616473)](https://packagist.org/packages/yunzhiyike/suno-ai-sdk) [![Monthly Downloads](https://camo.githubusercontent.com/6c17676ae65dc6db3bedf1b2323a37a51c3a6d3e5c751a66f1d22c9aae53c3e7/68747470733a2f2f706f7365722e707567782e6f72672f79756e7a686979696b652f73756e6f2d61692d73646b2f642f6d6f6e74686c79)](https://packagist.org/packages/yunzhiyike/suno-ai-sdk)

Unofficial Suno PHP-SDK
=======================

[](#unofficial-suno-php-sdk)

This is an unofficial Suno API based on PHP; it provides support for all Suno interfaces.

Installation 🔨
--------------

[](#installation-)

```
composer require yunzhiyike/suno-ai-sdk
```

Methods 📖
---------

[](#methods-)

- `generateMusic` \[description: generate music, return `uid` \]
- `refreshSession` \[description: Increase session survival time, return `PersonalInfoEntity` \]
- `getUserInfoByEmail` \[description: Obtaining user information via e-mail, return `PersonalInfoEntity` \]
- `getWorkList` \[description: Obtaining generated music list, return `WorkEntity[]` \]
- `getAvailableTimes` \[description: Getting the number of times available, return `int` \]

Cookie Extraction 🚗
-------------------

[](#cookie-extraction-)

> Before that you need to login!

[![img_1.png](img_1.png)](img_1.png)

Demo 🌲
------

[](#demo-)

```
