Recommend this page to a friend! |
Classes of Unused | Little YouTube PHP | README.md | Download |
|
Download <a href="https://www.patreon.com/stefansarya"><img src="http://anisics.stream/assets/img/support-badge.png" height="20"></a> LittleYoutubeHave you ever dreamed put your own channel on your own website? LittleYoutube is here to help you > Note: > Please use this library for fair use when downloading any youtube content. If you want to display youtube video to your website, please embed youtube link rather than download it. And don't ever use this for commercial use. Table of contents- LittleYoutube - Table of contents - Getting Started - Download via composer - Sample Usage - Documentation - LittleYoutube Options - Video Class
- Get last error message - Change settings dynamically - Contribution - License Getting Started> * Clone/download this repo
> * Include Download via composerAdd LittleYoutube to composer.json configuration file.
And update it
Sample Usage
DocumentationLittleYoutube OptionsAvailable options
Video Class> $video = LittleYoutube::video("videoURLHere", options); > > //Reinit video class > $video->init("videoURLHere"); Return video class Get video image preview> $video->getImage(); Return Indexed Array
Get embed link> $video->getEmbedLink();
Parse subtitle> $video->parseSubtitle(args, asSRT); > > * args: subtitle index or xml string > * asSRT: return as srt format > * note: if you pass subtitle index, ProcessDetails must be enabled/called
Get video data> $video->data; > > * You can also call $video->processDetails() to refresh data Return Associative Array of current video data
Channel Class> $channel = LittleYoutube::channel("channelURLHere", options); > > //Reinit channel class > $channel->init("channelURLHere"); Return channel class Get RSS URL> $channel->getChannelRSS(); Return string
Get channel data> $channel->data; > > * You can also call $channel->processDetails() to refresh data Return Associative Array of current channel data
Playlist Class> $playlist = LittleYoutube::playlist("playlistURLHere", options); > > //Reinit playlist class > $playlist->init("playlistURLHere"); Return playlist class Get playlist data> $playlist->data; > > * You can also call $playlist->processDetails() to refresh data Return string
Search Class> $search = LittleYoutube::search("searchQueryHere", options); > > //Reinit search class > $search->init("searchQueryHere"); Return search class Get search data> $search->data; > > * You can also call $search->processDetails() to refresh data Return string
Next result> $search->next(); This will add result from the next page to current data Previous result> $search->previous(); This will add result from the previous page to current data > Actually this is useless might Get last error message> $classes->error; Return string
Change settings dynamicallyYou can also change the settings after initialize LittleYoutube class > $classes->settings[options] = value; ContributionIf you want to help in LittleYoutube library, please make it even better and start a pull request into it. Keep it simple and keep it clear. LicenseLittleYoutube is under the GPL license. |