Download the PHP package mcfedr/youtubelivestreamsbundle without Composer
On this page you can find all versions of the php package mcfedr/youtubelivestreamsbundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mcfedr/youtubelivestreamsbundle
More information about mcfedr/youtubelivestreamsbundle
Files in mcfedr/youtubelivestreamsbundle
Download mcfedr/youtubelivestreamsbundle
More information about mcfedr/youtubelivestreamsbundle
Files in mcfedr/youtubelivestreamsbundle
Vendor mcfedr
Package youtubelivestreamsbundle
Short Description A bundle for fetching a list of live streams
License MIT
Package youtubelivestreamsbundle
Short Description A bundle for fetching a list of live streams
License MIT
Keywords youtubelivestreams
Please rate this library. Is it a good library?
Informations about the package youtubelivestreamsbundle
YouTube Live Streams Bundle
A bundle for sending tweets as push notifications
Install
Composer
php composer.phar require mcfedr/youtubelivestreamsbundle
AppKernel
Include the bundle in your AppKernel You need to also load the AWSPushBundle
public function registerBundles()
{
$bundles = array(
...
new Mcfedr\YouTube\LiveStreamsBundle\McfedrYouTubeLiveStreamsBundle(),
Routing
Setup the controllers in your routing.yml
mcfedr_you_tube_live_streams:
resource: "@McfedrYouTubeLiveStreamsBundle/Controller/"
type: annotation
prefix: /
Config
This is sample configuration, to add to your config.yml
mcfedr_you_tube_live_streams:
api_key: youtube api key
channel_id: id of the channel
cache_timeout: 3600 #cache for an hour
You might want to put something like this in your config_dev.yml
mcfedr_you_tube_live_streams:
cache_timeout: 0
Usage
You get get your list of streams
GET /streams
{
"streams": [
{
"name": "Громадське ONLINE. 6 березня",
"thumb": "https://i.ytimg.com/vi/Ou7hfc_LAeY/hqdefault.jpg",
"videoId": "Ou7hfc_LAeY"
},
{
"name": "Hromadske ONLINE RU",
"thumb": "https://i.ytimg.com/vi/O5j1mifrhK4/hqdefault.jpg",
"videoId": "O5j1mifrhK4"
}
]
}
All versions of youtubelivestreamsbundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
symfony/symfony Version ^3.1
guzzlehttp/guzzle Version ^6.2
sensio/framework-extra-bundle Version ^3.0
symfony/symfony Version ^3.1
guzzlehttp/guzzle Version ^6.2
sensio/framework-extra-bundle Version ^3.0
The package mcfedr/youtubelivestreamsbundle contains the following files
Loading the files please wait ....