fredericlesueurs / youtube-downloader
This package is abandoned and no longer maintained.
No replacement package was suggested.
The simplest of videos downloader
0.5.0.x-dev
2020-01-21 22:53 UTC
Requires
- php: ^7.1
- ext-curl: *
- ext-json: *
- jan-swiecki/simple-annotations: ^0.3.1
Requires (Dev)
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2023-07-22 07:30:25 UTC
README
This library is based on the Athlon1600 library, it allows you to download Youtube videos in several formats. You will get an easy to use object containing the details of the video and several links to download the video.
Installation
Pour installer cette library, il suffit d'utiliser la commande suivante :
composer require fredericlesueurs/youtube-downloader
Usage
use SimplePHPYoutubeDownloader\Model\Video; use SimplePHPYoutubeDownloader\Model\VideoDetails; use SimplePHPYoutubeDownloader\Model\VideoPackage; use SimplePHPYoutubeDownloader\YoutubeDownloader; $youtubeDownloader = new YoutubeDownloader(); $videoPackage = $youtubeDownloader->getYoutubeVideo('url'); $videoTitle = $videoPackage->getVideoDetails()->getTitle(); $videos = $videoPackage->getVideos(); foreach($videos as $video) { $video->getUrl(); }
License
MIT : see license file.