Recommend this page to a friend! |
Download |
Info | Example | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
72% | Total: 1,842 | All time: 2,137 This week: 36 |
Version | License | PHP version | Categories | |||
video-download 1.0.0 | GNU General Publi... | 5 | PHP 5, Files and Folders, Web services, V... |
Description | Author | |||||||||||||||||||||||||
This package can download YouTube or Vimeo videos. Innovation Award
|
|
<?php |
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 (6) | / | Downloader |
File | Role | Description |
---|---|---|
Downloader.php | Class | Class source |
LinkHandler.php | Class | Class source |
VimeoDownloader.php | Class | Class source |
YouTubeDownloader.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.