optimumsage/m3u-parser-php
最新稳定版本:1.0.0
Composer 安装命令:
composer require optimumsage/m3u-parser-php
包简介
This will parse m3u files and convert them to array or json
README 文档
README
This library helps you parse m3u files from url or text.
Install
composer require optimumsage/m3u-parser-php
Usage
use OptimumSage\M3uParser\M3uParser; ... $data = M3uParser::fromUrl([ 'https://iptv-org.github.io/iptv/categories/animation.m3u', 'https://iptv-org.github.io/iptv/categories/business.m3u' ])->get(); ... $data = M3uParser::fromUrl('https://iptv-org.github.io/iptv/index.m3u')->get(); // returns stdClass ... $data = M3uParser::fromUrl('https://iptv-org.github.io/iptv/index.m3u')->toArray(); // return array ... $data = M3uParser::fromUrl('https://iptv-org.github.io/iptv/index.m3u')->toJson(); // return json
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-06-16