06/01
2018
Wallogit.com
2017 © Pedro Peláez
Get YouTube video details by video URL
YouTube video details from video URL, (*1)
Get details by YouTube video from video URL., (*3)
To get started with YouTube video details, simply run:, (*4)
composer require fixik/video-details
Next, register the Fixik\VideoDetails\VideoDetailsServiceProvider in your config/app.php file:, (*5)
'providers' => [
// Other service providers...
Fixik\VideoDetails\VideoDetailsServiceProvider::class,
],
<?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, (*6)
YouTube Video Details is open-sourced software licensed under the MIT license, (*7)