PHPackages                             eleven59/vimeo-connector - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. eleven59/vimeo-connector

AbandonedArchivedLibrary[API Development](/categories/api)

eleven59/vimeo-connector
========================

Helper class to connect to Vimeo and download video information based on video ID

1.0.1(5y ago)07MITPHP

Since Apr 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/eleven59/vimeo-connector)[ Packagist](https://packagist.org/packages/eleven59/vimeo-connector)[ Docs](https://github.com/eleven59/vimeo-connector)[ RSS](/packages/eleven59-vimeo-connector/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (3)Used By (0)

VimeoConnector
==============

[](#vimeoconnector)

[![Latest Version on Packagist](https://camo.githubusercontent.com/16eec97737d09b96ca00af81e1c3a9917705acc3c213afad0be6594d97e5dbc7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656c6576656e35392f76696d656f2d636f6e6e6563746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eleven59/vimeo-connector)[![Total Downloads](https://camo.githubusercontent.com/ce4baebc9f5bc18ea579108b793d757fcddbc25bf2a8be47a183d9ab75d7d93f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656c6576656e35392f76696d656f2d636f6e6e6563746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/eleven59/vimeo-connector)

**Helper class to connect to Vimeo and download video information based on video ID or URL**

This package provides a class with connection and helper functionality to allow gathering video information if you have the URL or ID. Made this just 'cause all those others out there were not to my particular liking.

Installation
------------

[](#installation)

### Dependencies

[](#dependencies)

This package was tested with

- PHP 7.3+ with ext-curl
- Laravel 8.0 (optional, but package includes an AddonServiceProvider for this)

### Installation

[](#installation-1)

Via Composer

```
composer require eleven59/vimeo-connector
```

Then add Vimeo key and secret to your .env file and you're good to go:

```
VIMEO_KEY="vimeo key"
VIMEO_SECRET="vimeo secret"
```

Connector functions
-------------------

[](#connector-functions)

This package includes a single static class that will help you connect to Vimeo and get all the info you need if you have a Video Id. Does not (yet) work for events. If you only have an Url, see Helper functions below. Isn't that convenient?

### Get all info as returned by Vimeo

[](#get-all-info-as-returned-by-vimeo)

See [Vimeo Video API reference](https://developer.vimeo.com/api/reference/responses/video)

```
use Eleven59\VimeoConnector\VimeoConnector;
$video = VimeoConnector::getInfo($vimeoId);
```

### Get all stills for a video

[](#get-all-stills-for-a-video)

Instead of processing all that info yourself every time, why not use the built-in complementary function for that?

```
use Eleven59\VimeoConnector\VimeoConnector;
$stills = VimeoConnector::getStills($vimeoId);
```

### Get only the cover for the video

[](#get-only-the-cover-for-the-video)

Now, why would you process all of those images yourself if you only want the biggest, baddest image on the block? This one returns the still that matches both the width and height of the video. It's probably the biggest and the best match. I know that's not always the best option, but it's a great approximation and there's always the function above if you need more nuance.

```
use Eleven59\VimeoConnector\VimeoConnector;
$cover = VimeoConnector::getCover($vimeoId);
```

Helper functions
----------------

[](#helper-functions)

You can convert URLs to IDs for both events and videos. Isn't that great?

### URL to ID

[](#url-to-id)

There are two ways to go about this. You can use the know-it-all function that will just give you an ID no matter if you use a video or event URL. If you need to validate that the link is either a video *or* an event, you are very welcome to try the separate functions instead.

```
use Eleven59\VimeoConnector\VimeoHelper;
$id = VimeoHelper::getIdFromUrl($url); // returns event or video Id or false
$eventId = VimeoHelper::getEventIdFromUrl($url); // returns event Id or false
$videoId = VimeoHelper::getVideoIdFromUrl($url); // returns video Id or false
```

### ID to (Embed) URL

[](#id-to-embed-url)

If you have either an Id or a full-fledged URL or even an embed code, these functions can translate any of those into either a Video URL or Ember URL, no questions asked.

```
use Eleven59\VimeoConnector\VimeoHelper;
$embedUrl = VimeoHelper::getEmbedUrl($urlOrId); // works for events and videos (returns event url if numeric input is given)
$eventEmbedUrl = VimeoHelper::getEventEmbedUrl($urlOrId); // works only for events
$videoEmbedUrl = VimeoHelper::getVideoEmbedUrl($urlOrId); // works only for videos
```

Change log
----------

[](#change-log)

Breaking changes will be listed here. For other changes see commit log.

Credits
-------

[](#credits)

- [Nik Linders @ eleven59.nl](https://github.com/eleven59)

License
-------

[](#license)

This project was released under the MIT license, so you can install it on top of any Backpack &amp; Laravel project. Please see the [license file](license.md) for more information.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1895d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/00207d691aa93ed6eee5cd47b8341c9145dbd9449e49be9faf43ac3941e514a3?d=identicon)[eleven59](/maintainers/eleven59)

---

Top Contributors

[![eleven59](https://avatars.githubusercontent.com/u/2798364?v=4)](https://github.com/eleven59 "eleven59 (2 commits)")

---

Tags

Backpack AddonVimeoConnector

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/eleven59-vimeo-connector/health.svg)

```
[![Health](https://phpackages.com/badges/eleven59-vimeo-connector/health.svg)](https://phpackages.com/packages/eleven59-vimeo-connector)
```

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.6k3](/packages/defstudio-telegraph)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[rapidez/core

Rapidez Core

1823.5k72](/packages/rapidez-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
