2017 © Pedro Peláez
 

library vimeo-api-service-provider

A Vimeo Api ServiceProvider for Silex.

image

ivoba/vimeo-api-service-provider

A Vimeo Api ServiceProvider for Silex.

  • Tuesday, March 17, 2015
  • by ivoba
  • Repository
  • 1 Watchers
  • 2 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

A Vimeo Api Service Provider for Silex

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads, (*1)

Service Provider that integrates Vimeo's official PHP API libary to Silex, (*2)

Install

Via Composer, (*3)

``` bash $ composer require ivoba/vimeo-api-service-provider, (*4)


## Usage Register the Provider: ``` php $app->register(new Ivoba\Silex\VimeoApiServiceProvider(), array('vimeo.options' => array('client_key' => 'key', 'client_secret' => 'secret', 'access_token' => 'your_token')));

Default modus is unauthenticated.
It is recommended that you generated the access token once, store it to your config and use it forever.
If you dont provide a token, your token will be retrieved from Vimeo for every call, which will cost performance., (*5)

To show your token, call this once in your app, in debug mode. It will throw an exception that will show your token., (*6)

``` php $app['vimeo.api.show_token'];, (*7)


Now you can use the Vimeo API with: ``` php $app['vimeo.api']->request('/videos', array('query' => 'silex', 'format' => 'php', 'full_response' => '1', 'per_page' => 8, 'sort' => 'date'), 'GET');

Todo

I did not use authenticated mode yet, so this Provider doesnt have any helpers for it.
Feel free to provide some., (*8)

  • authenticated mode
  • token storage interface
  • set & get token from storage if set

Testing

bash $ vendor/bin/phpunit, (*9)

Contributing

Please see CONTRIBUTING for details., (*10)

License

The MIT License (MIT). Please see License File for more information., (*11)

The Versions

17/03 2015

dev-master

9999999-dev https://github.com/ivoba/vimeo-api-service-provider

A Vimeo Api ServiceProvider for Silex.

  Sources   Download

MIT

The Requires

 

The Development Requires

silex vimeo

17/03 2015

1.0.0

1.0.0.0 https://github.com/ivoba/vimeo-api-service-provider

A Vimeo Api ServiceProvider for Silex.

  Sources   Download

MIT

The Requires

 

The Development Requires

silex vimeo