amiad / soundcloud2podcast
将 Soundcloud 播单或用户转换为 PHP 的播客源
1.1.3
2020-02-10 21:15 UTC
Requires
- zelenin/rss-generator: ^2.1
README
将 Soundcloud 播单或用户转换为播客源
用法
手动下载
- 下载 PHPSoundcloud2Podcast。
- 使用 Composer 安装所需的依赖
$ composer install
- 在 URL 参数中传输 souncloud 地址
http://example.com/?url=https://soundcloud.com/user/
Composer
- 安装 soundcloud2podcast
$ composer require amiad/soundcloud2podcast
- 创建对象
require_once __DIR__.'/vendor/autoload.php'; new \Soundcloud2Podcast\Soundcloud2Podcast(url, cacheTime);
url
url 字符串 要转换的 souncloud 页面的 URL。cacheTime
可选 字符串 刷新源缓存的时间(例如:30 分钟
)。默认:1 小时。
许可证
GPL。
在 xs:code 上有可用的 MIT 许可版本。