mrprompt/silex-vimeo

Silex Vimeo Provider

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

This package is auto-updated.

Last update: 2024-10-21 06:35:17 UTC


README

Build Status Code Climate Test Coverage Issue Count

Install

composer require mrprompt/silex-vimeo

Usage

use SilexFriends\Vimeo\Vimeo;

$client_id      = getenv('VIMEO_CLIENT_ID');
$client_secret  = getenv('VIMEO_CLIENT_SECRET');
$access_token   = getenv('VIMEO_ACCESS_TOKEN');

$app = new Application;
$app->register(new Vimeo($client_id, $client_secret, $access_token));

/* @var $video array */
$video = $app['vimeo']('http://...');

var_dump($video);

Tests

./vendor/bin/phpunit

License

MIT