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 –
$tube = new youtube();
$links = $tube->get($_POST['url']);
New Version with much much more : FreeDown Downloader