mrprompt/silex-youtube

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

YouTube Service Provider

dev-master 2016-10-21 15:04 UTC

This package is not auto-updated.

Last update: 2021-10-16 03:11:21 UTC


README

Build Status Code Climate Test Coverage Issue Count

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