PHP Classes

PHP You Thumb: Generator of thumbnail images from YouTube videos

Recommend this page to a friend!
  Info   View files Example   Demos   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 207 All time: 8,402 This week: 524Up
Version License PHP version Categories
you-thumb 1.1GNU General Publi...3.0PHP 5, Graphics, Video
Description 

Author

This class is a generator of thumbnail images from YouTube videos.

It takes the URL of a given YouTube video to extract the video identifier.

The class returns the URL of a thumbnail image of the specified video in one of the available formats.

It can also returns an array of thumbnail URLs in all available formats.

Picture of Srihari Sri
Name: Srihari Sri <contact>
Classes: 3 packages by
Country: India India
Age: 34
All time rank: 1823112 in India India
Week rank: 288 Up26 in India India Up

Example

<?php
require_once 'YouThumb.class.php';

$instant = new YouThumb("https://www.youtube.com/watch?v=zdQRwF-Tn_M");

echo
'<pre>';print_r($instant->getThumbs("all"));//"all","0", "1", "2", "3", "default", "hqdefault", "mqdefault", "sddefault", "maxresdefault"

echo "Default: ". $instant->getThumbs("default");//"default"


  YouThumb demoExternal page  

Open in a separate window

  Files folder image Files  
File Role Description
Accessible without login Plain text file index.php Example Example usage
Plain text file YouThumb.class.php Class Class file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:207
This week:0
All time:8,402
This week:524Up