amiad/soundcloud2podcast

将 Soundcloud 播单或用户转换为 PHP 的播客源

1.1.3 2020-02-10 21:15 UTC

This package is auto-updated.

Last update: 2024-09-26 07:02:57 UTC


README

将 Soundcloud 播单或用户转换为播客源

Join the chat at https://gitter.im/PHPSoundcloud2Podcast/Lobby xscode

用法

手动下载

  1. 下载 PHPSoundcloud2Podcast。
  2. 使用 Composer 安装所需的依赖
    $ composer install
  3. 在 URL 参数中传输 souncloud 地址
    http://example.com/?url=https://soundcloud.com/user/

Composer

  1. 安装 soundcloud2podcast
    $ composer require amiad/soundcloud2podcast
  2. 创建对象
require_once __DIR__.'/vendor/autoload.php';
new \Soundcloud2Podcast\Soundcloud2Podcast(url, cacheTime);
  • url url 字符串 要转换的 souncloud 页面的 URL。
  • cacheTime 可选 字符串 刷新源缓存的时间(例如:30 分钟)。默认:1 小时。

许可证

GPL。

xs:code 上有可用的 MIT 许可版本。