PHP code example of kolpikov / laravel-youtube

1. Go to this page and download the library: Download kolpikov/laravel-youtube 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/ */

    

kolpikov / laravel-youtube example snippets


$videoID = "{{ANY_VIDEO_ID}}";
$data = \Kolpikov\Youtube\Facades\Youtube::getContentDetails($videoID);
dump($data);

 php artisan vendor:publish --tag=laravel-youtube-config