PHP Classes

PHP You Thumb: Generator of thumbnail images from YouTube videos

Recommend this page to a friend!
  Info   Example   Demos   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 207 All time: 8,406 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

 

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 (2)  
File Role Description
Accessible without login Plain text file index.php Example Example usage
Plain text file YouThumb.class.php Class Class file

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:207
This week:0
All time:8,406
This week:524Up