fixik/video-details
Composer 安装命令:
composer require fixik/video-details
包简介
Get YouTube video details by video URL
README 文档
README
YouTube video details from video URL
Introduction
Get details by YouTube video from video URL.
Installation
To get started with YouTube video details, simply run:
composer require fixik/video-details
Next, register the Fixik\VideoDetails\VideoDetailsServiceProvider in your config/app.php file:
'providers' => [ // Other service providers... Fixik\VideoDetails\VideoDetailsServiceProvider::class, ],
Basic Usage
<?php require_once 'vendor/autoload.php'; use Fixik\VideoDetails\VideoDetails; $url = 'https://www.youtube.com/watch?v=ol23jnhVAOY'; $video_details = VideoDetails::getVideoDetailsByURL($url); echo '<pre>'; print_r($video_details); echo '</pre>';
Enable extension=php_curl.dll in your php.ini
License
YouTube Video Details is open-sourced software licensed under the MIT license
统计信息
- 总下载量: 29
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-05