smartvain/youtube-caption-displayer
最新稳定版本:1.0.0
Composer 安装命令:
composer require smartvain/youtube-caption-displayer
包简介
This package allows you to get subtitles from youtube.
README 文档
README
You can install it by typing the following command in a terminal.
$ composer require smartvain/youtube-caption-displayer # or composer require --dev
Install with Packagist
Prepared methods
- getLangList()
- getCaptionsWithSeconds()
- getCaptionText()
Usage
First, add a Use declaration anywhere.
use Smartvain\YoutubeCaptionDisplayer\Displayer;
All that remains is to call the method with Facade.
Get the language list used for youtube video subtitles with getLangList().
Next, since the obtained language list contains lang-code, use it to get subtitles by getCaptionsWithSeconds() or getCaptionText().
If it is a youtube video without subtitles, return empty Collection.
It's so easy.
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-07-12