PHP Classes

YouTube Trailer: Search and embed movie trailers from YouTube

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 54%Total: 1,174 All time: 3,224 This week: 524Up
Version License PHP version Categories
youtube-trailer 1.0GNU General Publi...5.2PHP 5, Searching, Web services, Video
Description 

Author

This class can be used to search and embed movie trailers from YouTube.

It can send an HTTP request to retrieve and parse the YouTube search result pages for a trailer of a given movie.

The class extracts the identifier of the first result video and generates HTML to embed that video in a Web page.

Innovation Award
PHP Programming Innovation award nominee
March 2010
Number 3


Prize: One copy of Delphi for PHP
YouTube allows you to embed videos in external site pages, but you need to know the identifier of the specific video you want to embed.

This class can automatically embed trailers of movies from YouTube just giving the movie names.

Manuel Lemos
Picture of Nitesh Apte
  Performance   Level  
Name: Nitesh Apte is available for providing paid consulting. Contact Nitesh Apte .
Classes: 17 packages by
Country: India India
Age: 40
All time rank: 1337 in India India
Week rank: 49 Up7 in India India Equal
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

  Files folder image Files (22)  
File Role Description
Files folder imagejs (1 file, 1 directory)
Plain text file class.movietrailer.php Class Fetch movie trailer
Accessible without login Plain text file index.php Example index page
Accessible without login Plain text file LICENSE.TXT Lic. License File
Accessible without login Plain text file movietrailer.php Example caller page

  Files folder image Files (22)  /  js  
File Role Description
Files folder imagefancybox (17 files)
  Accessible without login Plain text file jquery.js Data Jquery Library

  Files folder image Files (22)  /  js  /  fancybox  
File Role Description
  Accessible without login Image file fancy_closebox.png Data Image
  Accessible without login Image file fancy_left.png Data Image File
  Accessible without login Image file fancy_progress.png Data Image file
  Accessible without login Image file fancy_right.png Data image
  Accessible without login Image file fancy_shadow_e.png Data image
  Accessible without login Image file fancy_shadow_n.png Data image
  Accessible without login Image file fancy_shadow_ne.png Data image
  Accessible without login Image file fancy_shadow_nw.png Data image
  Accessible without login Image file fancy_shadow_s.png Data image
  Accessible without login Image file fancy_shadow_se.png Data image
  Accessible without login Image file fancy_shadow_sw.png Data image
  Accessible without login Image file fancy_shadow_w.png Data image
  Accessible without login Image file fancy_title_left.png Data image
  Accessible without login Image file fancy_title_main.png Data image
  Accessible without login Image file fancy_title_right.png Data image
  Accessible without login Plain text file jquery.fancybox-1.2.6.css Data CSS File
  Accessible without login Plain text file jquery.fancybox-1.2.6.js Appl. JS 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:1,174
This week:0
All time:3,224
This week:524Up
User Ratings User Comments (3)
 All time
Utility:80%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:54%StarStarStar
Rank:2059