PHP Classes

YouTube: Embed YouTube videos in Web pages

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (7)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 5,789 All time: 404 This week: 174Up
Version License PHP version Categories
youtube 1.0.0GNU General Publi...5.0HTML, Video
Description 

Author

This class can be used to embed YouTube videos and the respective thumbnails in pages of any Web site.

It takes the URL of a video page in the YouTube site and parses it to extract the video identifier.

The class can generate HTML to embed a player to show the video in other Web site pages. The embedded video player width and height is configurable.

The class may also generate HTML to display thumbnail images of the videos.

Picture of Nemanja Avramovic
Name: Nemanja Avramovic <contact>
Classes: 9 packages by
Country: Serbia Serbia
Age: 37
All time rank: 2011 in Serbia Serbia
Week rank: 83 Up2 in Serbia Serbia Down
Innovation award
Innovation award
Nominee: 1x

Screenshots  
  • screenshot.jpg
  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example of usage
Plain text file youtube.class.php Class Class file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:5,789
This week:0
All time:404
This week:174Up
User Ratings User Comments (3)
 All time
Utility:86%StarStarStarStarStar
Consistency:82%StarStarStarStarStar
Documentation:-
Examples:82%StarStarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1246
 
I can't thank you enough.
13 years ago (Reda)
70%StarStarStarStar
Nice work, useful for immediate video embedding
14 years ago (Muhammad Arfeen)
70%StarStarStarStar
Excelent.
15 years ago (Moises Narvaez)
70%StarStarStarStar