PHP code example of fixik / video-details
1. Go to this page and download the library: Download fixik/video-details library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fixik / video-details example snippets
'providers' => [
// Other service providers...
Fixik\VideoDetails\VideoDetailsServiceProvider::class,
],
ixik\VideoDetails\VideoDetails;
$url = 'https://www.youtube.com/watch?v=ol23jnhVAOY';
$video_details = VideoDetails::getVideoDetailsByURL($url);
echo '<pre>';
print_r($video_details);
echo '</pre>';