adinan-cenci/internet-radio
Composer 安装命令:
composer require adinan-cenci/internet-radio
包简介
A library to fetch internet-radio.com radio stations.
README 文档
README
An unofficial library to retrieve radio stations from the internet-radio.com catalog.
Stations by genre
Use the ::getStationsByGenre($genre, $offset, $limit, $sortBy) method to retrieve stations labeled with a specific musical genre.
| Parameter | Type | Default | Description |
|---|---|---|---|
| $genre | string | The name of a musical genre, see ::getGenres() for possible values. |
|
| $offset | int | 0 | |
| $limit | int | 20 | |
| $sortBy | string | 'featured' | Possible values: featured, listeners, bitrate. |
use AdinanCenci\InternetRadio\InternetRadio; $internetRadio = new InternetRadio(); $stations = $internetRadio->getStationsByGenre('metal');
It will return an array as such:
[
{
"id": "idobihowl",
"name": "idobi Howl",
"description": "metal, hardcore",
"homepage": "http://idobiradio.com/",
"playlist": "http://69.46.88.26:80/listen.pls",
"currentlyPlaying": "SYLOSIS - Fear the World",
"listeners": "2527",
"bitRate": "128"
},
{
"id": "knac.com",
"name": "KNAC.COM",
"description": "metal",
"homepage": "http://www.knac.com",
"playlist": "http://198.178.123.14:7346/listen.pls?sid=1",
"currentlyPlaying": "NAZARETH - HAIR OF THE DOG",
"listeners": "268",
"bitRate": "128"
},
{
"id": "metalexpressradio",
"name": "Metal Express Radio",
"description": "heavy metal",
"homepage": "http://www.metalexpressradio.com",
"playlist": "http://5.135.154.69:11590/listen.pls?sid=1",
"currentlyPlaying": "David T. Chastain - Burning Passion",
"listeners": "199",
"bitRate": "192"
}
...
...
...
Search stations
Use the ::searchStations($query, $offset, $limit, $sortBy) method to search stations based on their names.
| Parameter | Type | Default | Description |
|---|---|---|---|
| $query | string | Word(s) to be matched against station names. | |
| $offset | int | 0 | |
| $limit | int | 20 | |
| $sortBy | string | 'featured' | Possible values: featured, listeners, bitrate. |
Genres
The ::getGenres() returns an array of musical genres used to label radio stations. Use this values to search stations with the ::getStationsByGenre() method.
$genres = $internetRadio->getGenres(); /* '50s', '60s', 'Acid House', 'Bass', 'Jazz', 'Metal', ... ... ... */
Notes
At the moment of this writing, internet-radio.com does not provide an API, the information provided by this library is being scraped from the official website and this library may stop working in the day they decide to update their page.
License
MIT
adinan-cenci/internet-radio 适用场景与选型建议
adinan-cenci/internet-radio 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 8 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 11 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「music」 「radio」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 adinan-cenci/internet-radio 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 adinan-cenci/internet-radio 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 adinan-cenci/internet-radio 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Use JSON templates as field options for dropdown, radio or checkboxes.
MvcCore - Extension - Form - form extension with base classes to create and render web forms with HTML5 controls, to handle and validate submited user data, to manage forms sessions for default values, to manage user input errors and to extend and develop custom fields and field groups.
PHP wrapper for command-line fingerprint generator - fpcalc
Library that obtains VK tokens that work for VK audio API. Библиотека для получения токена VK, подходящего для Audio API.
Attribute RadioImage for Isotope eCommerce
A library to fetch radio stations from the radio-browser.info catalog.
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-11-01