PHP code example of jackal / video-downloader-ext-youtube

1. Go to this page and download the library: Download jackal/video-downloader-ext-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/ */

    

jackal / video-downloader-ext-youtube example snippets


use Jackal\Downloader\Ext\Youtube\Downloader\YoutubeDownloader;

VideoDownloader();
$vd->registerDownloader(YoutubeDownloader::VIDEO_TYPE, YoutubeDownloader::class);

$downloader = $vd->getDownloader(YoutubeDownloader::VIDEO_TYPE, $youtubeVideoId, [
    'format' => [360,480]
]);

$downloader->download(__DIR__ . '/output.avi');