fixik / video-details
Get YouTube video details by video URL
2.0.2
2018-01-06 00:15 UTC
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