baraja-core / vimeo-video-api
Simple API wrapper for Vimeo.
Installs: 2 405
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
- ext-curl: *
Requires (Dev)
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^1.0
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-nette: ^1.0
- phpstan/phpstan-strict-rules: ^1.0
- roave/security-advisories: dev-master
- spaze/phpstan-disallowed-calls: ^2.0
This package is auto-updated.
Last update: 2024-10-08 18:12:30 UTC
README
Simple API wrapper for Vimeo. Czech documentation
Download video name, description, thumbnail, duration and more.
📦 Installation
It's best to use Composer for installation, and you can also find the package on Packagist and GitHub.
To install, simply use the command:
$ composer require baraja-core/vimeo-video-api
You can use the package manually by creating an instance of the internal classes, or register a DIC extension to link the services directly to the Nette Framework.
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.
📄 License
baraja-core/vimeo-video-api
is licensed under the MIT license. See the LICENSE file for more details.