visionappscz/video-id-extractor
最新稳定版本:v1.0.1
Composer 安装命令:
composer require visionappscz/video-id-extractor
包简介
Extract video ID from the link. Supports youtube, facebook, vimeo
README 文档
README
This library extracts video IDs from links to hosted videos.
The supported services are:
Getting Started
Installing
Install with composer
require visionappscz/video-id-extractor
Usage example
use VideoIdExtractor\Extractor\VideoIdExtractException;
use VideoIdExtractor\Extractor\YoutubeVideoIdExtractor;
...
$extractor = new YoutubeVideoIdExtractor();
try {
$videoId = $extractor->extract('http://www.youtube.com/watch?v=uWhV5wSyxTI');
} catch (VideoIdExtractException $e) {
die('The supplied link is not valid.)
}
统计信息
- 总下载量: 5.55k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-12