PHP Classes

File: example/example.php

Recommend this page to a friend!
  Classes of Ssaurz Acharya   PHP Youtube and Vimeo Video Downloader Script   example/example.php   Download  
File: example/example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Youtube and Vimeo Video Downloader Script
Download YouTube or Vimeo videos
Author: By
Last change:
Date: 7 years ago
Size: 351 bytes
 

Contents

Class file image Download
<?php
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());
}