Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 551 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 551 Bytes

PHPTube

The PHP Library to fetch Youtube video URIs from Watch URLs

What is PHPTube?

PHPTube is a PHP Library that allows you to fetch the actual Video URIs (of multiple available formats) directly from the Youtube Watch URL.

How to use it?

<?php
require_once 'PhpTube.php';
$tube = new PhpTube();
$videos = $tube->getDownloadLink('http://www.youtube.com/watch?v=Q-0p7ogC51k');

var_dump($videos);
?>