PHPackages                             cable8mm/water-melon - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. cable8mm/water-melon

ActiveProject[Testing &amp; Quality](/categories/testing)

cable8mm/water-melon
====================

Water Melon is simple melon.com api sdk for php

v1.1.3(2y ago)182.7k2MITPHPPHP ^8.0

Since Mar 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/cable8mm/water-melon)[ Packagist](https://packagist.org/packages/cable8mm/water-melon)[ RSS](/packages/cable8mm-water-melon/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

[![code-style](https://github.com/cable8mm/water-melon/actions/workflows/code-style.yml/badge.svg)](https://github.com/cable8mm/water-melon/actions/workflows/code-style.yml)[![run-tests](https://github.com/cable8mm/water-melon/actions/workflows/run-tests.yml/badge.svg)](https://github.com/cable8mm/water-melon/actions/workflows/run-tests.yml)[![Packagist Version](https://camo.githubusercontent.com/3f39206e70c33dedcc251997421861f2f5c5a019b7727b925035b68e94e2fa00/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361626c65386d6d2f77617465722d6d656c6f6e)](https://camo.githubusercontent.com/3f39206e70c33dedcc251997421861f2f5c5a019b7727b925035b68e94e2fa00/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6361626c65386d6d2f77617465722d6d656c6f6e)[![Packagist Downloads](https://camo.githubusercontent.com/815154200811b97ea65740cf0b884d258f70ec61290d0aac8a13c323090a4fa7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6361626c65386d6d2f77617465722d6d656c6f6e)](https://camo.githubusercontent.com/815154200811b97ea65740cf0b884d258f70ec61290d0aac8a13c323090a4fa7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6361626c65386d6d2f77617465722d6d656c6f6e)[![Packagist Dependency Version](https://camo.githubusercontent.com/8603ee6f3d1cdf8a01aea759edfef12e1d66733f7c192ec6345fa13e8aa26621/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6361626c65386d6d2f77617465722d6d656c6f6e2f706870)](https://camo.githubusercontent.com/8603ee6f3d1cdf8a01aea759edfef12e1d66733f7c192ec6345fa13e8aa26621/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6361626c65386d6d2f77617465722d6d656c6f6e2f706870)[![Packagist Stars](https://camo.githubusercontent.com/53a45991f5492877582a881dd74ab8c7b06a2e8b550b0bba9bdc414165172ff1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6361626c65386d6d2f77617465722d6d656c6f6e)](https://camo.githubusercontent.com/53a45991f5492877582a881dd74ab8c7b06a2e8b550b0bba9bdc414165172ff1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f6361626c65386d6d2f77617465722d6d656c6f6e)[![Packagist License](https://camo.githubusercontent.com/432d1d83158f9cf11313af04c56dd340acede708db3e5f7fa74d92008adf39c8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6361626c65386d6d2f77617465722d6d656c6f6e)](https://camo.githubusercontent.com/432d1d83158f9cf11313af04c56dd340acede708db3e5f7fa74d92008adf39c8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6361626c65386d6d2f77617465722d6d656c6f6e)

Water Melon
===========

[](#water-melon)

This library is designed for retrieving information about artists, songs, and albums using their respective IDs from .

We have provided the API Documentation on the web. For more information, please visit  ❤️

Features
--------

[](#features)

- Fetches information about songs, artists, and albums
- To be able to retrieve information about artists and albums using the Melon song ID
- Customize the fields according to your needs for easy access

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

[](#installation)

```
composer require cable8mm/water-melon
```

Usage
-----

[](#usage)

Get song info:

```
$waterMelon = WaterMelon::make(35945927);   // Ditto's song id

print $waterMelon->song->id;
//=> 35945927

print $waterMelon->album->id;
//=> 11127145

print $waterMelon->artists[0]->id;
//=> 3114174
```

and fantastic resource inspired by laravel resource:

```
$waterMelon = WaterMelon::make(35945927);
// Ditto's Melon song ID

$song = SongResource::make($waterMelon->getSong());

print $song->title;
//=> Ditto
print $song->album_id;
//=> 11127145
print $song->artwork_image_path;
//=> https://cdnimg.melon.co.kr/cm2/album/images/111/27/145/11127145_20231213133532_500.jpg?42f8389c13de0f5f8e4c722bbb0d4bd7/melon/resize/144/optimize/90

$artist = ArtistResource::make($waterMelon->getArtists()[0]);

print $artist->melon_artistid;
//=> 3114174
print $artist->name;
//=> NewJeans
print $artist->featured_image_path;
//=> https://cdnimg.melon.co.kr/cm2/artistcrop/images/031/14/174/3114174_20231219153524_500.jpg?8d4887c3dea0a5262fe256c1aef2a9d2/melon/resize/100/optimize/90

$album = AlbumResource::make($waterMelon->getAlbum());

print $album->melon_albumid;
//=> 11127145
print $album->title;
//=> NewJeans 'OMG'
print $album->album_cover_path;
//=> https://cdnimg.melon.co.kr/cm2/album/images/111/27/145/11127145_20231213133532_500.jpg?42f8389c13de0f5f8e4c722bbb0d4bd7/melon/resize/255/optimize/90
print $album->released_at;
//=> 2023.01.02
```

Specification
-------------

[](#specification)

You can refer to the Markdown documents for melon.com JSON specifications:

- [Song Document](docs/song.md)
- [Album Document](docs/album.md)
- [Artist Document](docs/artist.md)

Lint
----

[](#lint)

```
composer lint
```

Test
----

[](#test)

```
composer test
```

License
-------

[](#license)

The Water Melon project is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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 ~88 days

Total

5

Last Release

791d ago

PHP version history (2 changes)v1.0.0PHP &gt;=8.1

v1.1.2PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c910c874a0263a18f9f976273054cd45faa3ffbcba7891992f4ab52d0656dd93?d=identicon)[Sam Lee](/maintainers/Sam%20Lee)

---

Top Contributors

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

---

Tags

composercrawlerkpoplaravelmelonpackagephpphpphpunitcrawlerdevelopmentmelon

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/cable8mm-water-melon/health.svg)

```
[![Health](https://phpackages.com/badges/cable8mm-water-melon/health.svg)](https://phpackages.com/packages/cable8mm-water-melon)
```

###  Alternatives

[blastcloud/guzzler

Supercharge your app or SDK with a testing library specifically for Guzzle.

272419.3k35](/packages/blastcloud-guzzler)[nunomaduro/mock-final-classes

Allows mocking of final methods and classes in PHP.

113854.3k23](/packages/nunomaduro-mock-final-classes)[hot/phpunit-runner

The lib allows to watch phpunit tests

3066.9k4](/packages/hot-phpunit-runner)[robiningelbrecht/phpunit-coverage-tools

PHPUnit coverage tools

1783.0k33](/packages/robiningelbrecht-phpunit-coverage-tools)[phrozenbyte/phpunit-array-asserts

Provides various array-related PHPUnit assertions, primarily used for API testing.

1055.0k1](/packages/phrozenbyte-phpunit-array-asserts)

PHPackages © 2026

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