cable8mm/water-melon
Composer 安装命令:
composer create-project cable8mm/water-melon
包简介
Water Melon is simple melon.com api sdk for php
README 文档
README
Water Melon
This library is designed for retrieving information about artists, songs, and albums using their respective IDs from https://www.melon.com.
We have provided the API Documentation on the web. For more information, please visit https://www.palgle.com/water-melon/ ❤️
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
composer require cable8mm/water-melon
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
You can refer to the Markdown documents for melon.com JSON specifications:
Lint
composer lint
Test
composer test
License
The Water Melon project is open-sourced software licensed under the MIT license.
cable8mm/water-melon 适用场景与选型建议
cable8mm/water-melon 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.77k 次下载、GitHub Stars 达 18, 最近一次更新时间为 2023 年 03 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「phpunit」 「development」 「crawler」 「melon」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cable8mm/water-melon 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cable8mm/water-melon 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cable8mm/water-melon 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
HiDev plugin for PHPUnit
Testing Suite For Lumen like Laravel does.
A cli tool which generates unit tests.
Debugging a problem and need to login as one of your customers? This allows you to authenticate as any of your customers.
Library with classes to help you do batch.
GHT D-Tools Bundle
统计信息
- 总下载量: 2.77k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 18
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-20