mrprompt / silex-youtube
YouTube Service Provider
dev-master
2016-10-21 15:04 UTC
Requires
- php: >=7.0
- ext-curl: *
- ext-json: *
- madcoda/php-youtube-api: ~1.0
Requires (Dev)
- codeclimate/php-test-reporter: dev-master
- phpunit/phpunit: ^5.1
- silex/silex: ~1.3
This package is auto-updated.
Last update: 2024-12-21 06:58:03 UTC
README
Install
composer require mrprompt/silex-youtube
Usage
use SilexFriends\YouTube\YouTube;
...
$api_key = getenv('YOUTUBE_API_KEY');
$app = new Application;
$app->register(new YouTube($api_key));
...
/* @var $video array */
$video = $app['youtube']('http://...');
var_dump($video);
Tests
./vendor/bin/phpunit
License
MIT