jackal/video-downloader-ext-youtube

Youtube extension for jackal/video-downloader package

v0.5.1 2020-06-16 14:02 UTC

This package is auto-updated.

Last update: 2020-07-16 14:21:57 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License Scrutinizer Code Quality

Youtube extension for jackal/video-downloader

Installation

composer require jackal/video-downloader-ext-youtube

Usage

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

require_once __DIR__ . '/vendor/autoload.php';

$youtubeVideoId = 'otCpCn0l4Wo';

$vd = new \Jackal\Downloader\VideoDownloader();
$vd->registerDownloader(YoutubeDownloader::VIDEO_TYPE, YoutubeDownloader::class);

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

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