Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

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.

License

Notifications You must be signed in to change notification settings

fredericlesueurs/simple-php-youtube-downloader

Repository files navigation

Simple PHP Youtube Downloader

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.

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages