kennisnet/youtubeurlnormalizer
最新稳定版本:0.1.0
Composer 安装命令:
composer require kennisnet/youtubeurlnormalizer
包简介
Youtube URL Normalizer
README 文档
README
PHP library for normalizing Youtube urls.
Usage
The library can handle all types of urls, and either verifies it is not a Youtube url, or provides normalized variants. Two types of normalized urls are provided, one with provided valid arguments, and one without.
Just call the library with a URL you'd like to check or normalize.
<?php $yt = new YoutubeUrlNormalizer("http://www.youtube.com/watch?v=7cZFk68S3js&time_continue=12&list=PLi_srCikhtghrNa6Ti1d4aSyPQzQ3JI63&index=4"); var_dump($yt->isYoutube); # bool(true) echo $yt->normalized; # https://youtu.be/7cZFk68S3js echo $yt->normalized_parameters; # https://youtu.be/7cZFk68S3js?index=4&list=PLi_srCikhtghrNa6Ti1d4aSyPQzQ3JI63&time_continue=12
统计信息
- 总下载量: 3.2k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-13