PHP Youtube and Vimeo Video Downloader Script: Download YouTube or Vimeo videos

Recommend this page to a friend!
  Info   Example   View files (6)   Download .zip   Reputation   Support forum (10)   Blog    
Ratings Unique User Downloads Download Rankings
72%Total: 1,701 This week: 1All time: 2,288 This week: 255
Version License PHP version Categories
video-download 1.0.0GNU General Publi...5PHP 5, Files and Folders, Web services, V...
Description Author

This package can download YouTube or Vimeo videos.

It takes as parameter the URL of a video page on YouTube or Video sites.

The class determines the identifier of the video and the video download URL.

It returns the URL to download the video file as result.

Innovation Award
PHP Programming Innovation award nominee
January 2017
Number 2


Prize: PhpStorm IDE 1 year individual subscription
YouTube is the most popular video hosting site, but Vimeo is also used by many video publishers.

Many users would like to be able to download videos from these sites and watch them offline, but the sites do not provide a good solution for that.

This package provides means for downloading videos from either YouTube or Vimeo using PHP scripts.

Manuel Lemos
Picture of Ssaurz Acharya
Name: Ssaurz Acharya <contact>
Classes: 2 packages by
Country: Australia Australia
Age: ???
All time rank: 160524 in Australia Australia
Week rank: 259 2 in Australia Australia
Innovation award
Innovation award
Nominee: 1x

Details

Youtube-Vimeo-Video-Downloader-Script

This is a script done by me for Youtube and Vimeo video downloader.

Below is the given example to extract the download link of Youtube and Vimeo. After you got the downlad link you can create your own downloader.

include_once 'YouTubeDownloader.php';
include_once 'VimeoDownloader.php';
include_once 'LinkHandler.php';
 
$url = "https://www.youtube.com/watch?v=oeCihv9A3ac";
$handler = new LinkHandler();
$downloader = $handler->getDownloader($url);
$downloader->setUrl($url);
if($downloader->hasVideo())
{
    print_r($downloader->getVideoDownloadLink());
}
  Files  
File Role Description
Downloader (4 files)
example (1 file)
README.md Doc. Documentation

  Files  /  Downloader  
File Role Description
   Downloader.php Class Class source
   LinkHandler.php Class Class source
   VimeoDownloader.php Class Class source
   YouTubeDownloader.php Class Class source

  Files  /  example  
File Role Description
   example.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:1,701
This week:1
All time:2,288
This week:255
 User Ratings  
 
 All time
Utility:95%
Consistency:90%
Documentation:80%
Examples:80%
Tests:-
Videos:-
Overall:72%
Rank:262
  

For more information send a message to info at phpclasses dot org.