jackal/video-downloader-ext-youtube

This package is abandoned and no longer maintained. No replacement package was suggested.

Youtube extension for jackal/video-downloader package

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

This package is auto-updated.

Last update: 2024-07-16 22:36:22 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');