mrprompt / silex-vimeo
Silex Vimeo Provider
dev-master
2016-10-21 15:20 UTC
Requires
- php: >=7.0
- ext-curl: *
- ext-json: *
- vimeo/vimeo-api: ~1.1
Requires (Dev)
- codeclimate/php-test-reporter: dev-master
- phpunit/phpunit: ^5.1
- silex/silex: ~1.3
This package is auto-updated.
Last update: 2024-11-21 06:48:23 UTC
README
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