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
Requires
- php: >=7.1
- athlon1600/youtube-downloader: ^2.0
- jackal/video-downloader: ^0.5
Requires (Dev)
- brainmaestro/composer-git-hooks: ^2.8
- friendsofphp/php-cs-fixer: ^2.16
- phpunit/phpunit: ^7.5
README
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');