Componette

Componette

baraja-core

baraja-core / vimeo-video-api v1.3.1

Simple API wrapper for Vimeo.

download-cloud-line composer require baraja-core/vimeo-video-api

Vimeo video API

Simple API wrapper for Vimeo. Czech documentation

Download video name, description, thumbnail, duration and more.

Install

By Composer:

$ composer require baraja-core/vimeo-video-api

And simple create instance or create service:

service:
    - \Baraja\VimeoAPI\VimeoVideoAPI(%vimeo.referer%)

parameters:
    vimeo:
        referer: https://baraja.cz

Or manually:

$api = new \Baraja\VimeoAPI\VimeoVideoAPI;

$token = 0; // Some token as integer
$info = $api->getInfo($token);

echo var_dump($info);

// or specific information

echo 'Duration is: ' . $info->getDuration();

Referer

In new Vimeo API you must use http referer, it's domain name of your server where your API is hosted.

If the referrer is not listed, the baraja.cz is assumed.

bar-chart-fill

Statistics

download-cloud-fill
519
star-fill
1
bug-fill
0
flashlight-fill
18d
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=7.1.0)
ext-curl (*)
Componette Componette felix@nette.org