Recommend this page to a friend! |
Classes of Rayhan Sardar | PHP YouTube API | README.md | Download |
|
DownloadYouTube API v3 PHP Wrapper & YouTube DownloaderA basic PHP wrapper for the Youtube Data API v3 ( Non-OAuth ). Designed to let devs easily fetch public data (Video & Channel) from Youtube. No 3rd party dependancy. The reason of returning the ARRAY response directly is to keep it simple. Some parameters are missing in this library, because I don't need them at this point, if you desire a particular feature please file an issue here :smile: Requirements
InstallRun the following command in your command line shell in your php project
UsageExample usage of getting "Top of the chart" videos :
Example usage of getting Category wise "Top of the chart" videos :
Example usage of Searching :
Example usage of video info :
Example usage of getting channel wise video :
Example usage of getting related videos :
YouTube API Video Category ID :2 - Autos & Vehicles 1 - Film & Animation 10 - Music 15 - Pets & Animals 17 - Sports 18 - Short Movies 19 - Travel & Events 20 - Gaming 21 - Videoblogging 22 - People & Blogs 23 - Comedy 24 - Entertainment 25 - News & Politics 26 - Howto & Style 27 - Education 28 - Science & Technology 29 - Nonprofits & Activism 30 - Movies 31 - Anime/Animation 32 - Action/Adventure 33 - Classics 34 - Comedy 35 - Documentary 36 - Drama 37 - Family 38 - Foreign 39 - Horror 40 - Sci-Fi/Fantasy 41 - Thriller 42 - Shorts 43 - Shows 44 - Trailers Format of returned dataThe returnd data is a PHP Array Youtube Data API v3ContactFor bugs, complain and suggestions please file an Issue here or send email to madcode.git@gmail.com :smile: LicenseThis library is licensed under the MIT License. |