Spacer
Spacer

NGCODERS.COM

[ NEXT GENERATION CODERS ]

Spacer

PHP Youtube video downloader script

I was searching for a simple script which would allow me to download videos from youtube using php. I did find some implementation but only one of them worked and it used Pear. So here is a simple script to help you download videos from youtube. Allows you to download restricted videos too by logging into youtube.

The script is a simple youtube class which uses CURL.

Sample usage of the youtube class –

include(‘curl.php’);
include(‘youtube.php’);

$tube = new youtube();

// Only required for restricted videos
// $tube->username = “userid”;
// $tube->password = “password”;

$download_link = $tube->get($_POST['url']);

New Version with much much more : FreeDown Downloader

81 Responses to “PHP Youtube video downloader script”


Leave a Reply