{"id":15226370,"url":"https://github.com/cable8mm/water-melon","last_synced_at":"2025-04-09T20:30:36.251Z","repository":{"id":144719713,"uuid":"616474028","full_name":"cable8mm/water-melon","owner":"cable8mm","description":"Water Melon is simple melon.com api sdk for php","archived":false,"fork":false,"pushed_at":"2024-03-09T08:07:31.000Z","size":137,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T22:24:30.444Z","etag":null,"topics":["composer","crawler","kpop","laravel","melon","package","php"],"latest_commit_sha":null,"homepage":"https://www.palgle.com/water-melon/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cable8mm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-20T13:10:45.000Z","updated_at":"2024-03-11T04:08:38.000Z","dependencies_parsed_at":"2023-12-28T06:45:38.006Z","dependency_job_id":"728c3fbc-b8d9-4463-b83b-1516153f3c81","html_url":"https://github.com/cable8mm/water-melon","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cable8mm%2Fwater-melon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cable8mm%2Fwater-melon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cable8mm%2Fwater-melon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cable8mm%2Fwater-melon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cable8mm","download_url":"https://codeload.github.com/cable8mm/water-melon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248107099,"owners_count":21048854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","crawler","kpop","laravel","melon","package","php"],"created_at":"2024-09-28T20:04:51.224Z","updated_at":"2025-04-09T20:30:36.211Z","avatar_url":"https://github.com/cable8mm.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![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)\n[![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)\n![Packagist Version](https://img.shields.io/packagist/v/cable8mm/water-melon)\n![Packagist Downloads](https://img.shields.io/packagist/dt/cable8mm/water-melon)\n![Packagist Dependency Version](https://img.shields.io/packagist/dependency-v/cable8mm/water-melon/php)\n![Packagist Stars](https://img.shields.io/packagist/stars/cable8mm/water-melon)\n![Packagist License](https://img.shields.io/packagist/l/cable8mm/water-melon)\n\n# Water Melon\n\nThis library is designed for retrieving information about artists, songs, and albums using their respective IDs from https://www.melon.com.\n\nWe have provided the API Documentation on the web. For more information, please visit https://www.palgle.com/water-melon/ ❤️\n\n## Features\n\n- [x] Fetches information about songs, artists, and albums\n- [x] To be able to retrieve information about artists and albums using the Melon song ID\n- [x] Customize the fields according to your needs for easy access\n\n## Installation\n\n```sh\ncomposer require cable8mm/water-melon\n```\n\n## Usage\n\nGet song info:\n\n```php\n$waterMelon = WaterMelon::make(35945927);   // Ditto's song id\n\nprint $waterMelon-\u003esong-\u003eid;\n//=\u003e 35945927\n\nprint $waterMelon-\u003ealbum-\u003eid;\n//=\u003e 11127145\n\nprint $waterMelon-\u003eartists[0]-\u003eid;\n//=\u003e 3114174\n```\n\nand fantastic resource inspired by laravel resource:\n\n```php\n$waterMelon = WaterMelon::make(35945927);\n// Ditto's Melon song ID\n\n$song = SongResource::make($waterMelon-\u003egetSong());\n\nprint $song-\u003etitle;\n//=\u003e Ditto\nprint $song-\u003ealbum_id;\n//=\u003e 11127145\nprint $song-\u003eartwork_image_path;\n//=\u003e https://cdnimg.melon.co.kr/cm2/album/images/111/27/145/11127145_20231213133532_500.jpg?42f8389c13de0f5f8e4c722bbb0d4bd7/melon/resize/144/optimize/90\n\n$artist = ArtistResource::make($waterMelon-\u003egetArtists()[0]);\n\nprint $artist-\u003emelon_artistid;\n//=\u003e 3114174\nprint $artist-\u003ename;\n//=\u003e NewJeans\nprint $artist-\u003efeatured_image_path;\n//=\u003e https://cdnimg.melon.co.kr/cm2/artistcrop/images/031/14/174/3114174_20231219153524_500.jpg?8d4887c3dea0a5262fe256c1aef2a9d2/melon/resize/100/optimize/90\n\n$album = AlbumResource::make($waterMelon-\u003egetAlbum());\n\nprint $album-\u003emelon_albumid;\n//=\u003e 11127145\nprint $album-\u003etitle;\n//=\u003e NewJeans 'OMG'\nprint $album-\u003ealbum_cover_path;\n//=\u003e https://cdnimg.melon.co.kr/cm2/album/images/111/27/145/11127145_20231213133532_500.jpg?42f8389c13de0f5f8e4c722bbb0d4bd7/melon/resize/255/optimize/90\nprint $album-\u003ereleased_at;\n//=\u003e 2023.01.02\n```\n\n## Specification\n\nYou can refer to the Markdown documents for melon.com JSON specifications:\n\n- [Song Document](docs/song.md)\n- [Album Document](docs/album.md)\n- [Artist Document](docs/artist.md)\n\n## Lint\n\n```sh\ncomposer lint\n```\n\n## Test\n\n```sh\ncomposer test\n```\n\n## License\n\nThe Water Melon project is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcable8mm%2Fwater-melon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcable8mm%2Fwater-melon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcable8mm%2Fwater-melon/lists"}