PHPackages                             ladamalina/video-helper - 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. ladamalina/video-helper

ActiveLibrary

ladamalina/video-helper
=======================

VideoHelper provides functionality for embedding YouTube &amp; Vimeo video.

2282PHP

Since Nov 11Pushed 11y ago1 watchersCompare

[ Source](https://github.com/ladamalina/video-helper)[ Packagist](https://packagist.org/packages/ladamalina/video-helper)[ RSS](/packages/ladamalina-video-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

VideoHelper provides functionality for embedding YouTube &amp; Vimeo video.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist ladamalina/video-helper "*"

```

or add

```
"ladamalina/video-helper": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

```
use ladamalina\VideoHelper;
```

Get HTML embed code by Vimeo video URL

```
$service = VideoHelper::serviceByUrl('https://vimeo.com/110713161');
// helper detects 'vimeo.com' and video id '110713161' in your link
echo $service->embedCode(500, 300); // 500x281 by default
```

Get HTML embed code by Youtube video URL

```
$service = VideoHelper::serviceByUrl('https://www.youtube.com/watch?v=M7FIvfx5J10');
// helper detects 'youtube.com' and video id 'M7FIvfx5J10' in your link
echo $service->embedCode(); // 500x281 by default
```

Get thumbnail URL by Vimeo video ID

```
// if you have video provider name and id (perhaps in your database)
$service = VideoHelper::serviceByName('Vimeo');
$service->id = '110713161';

// high quality
$url = $service->thumbnail($service::THUMB_SIZE_HQ);

// medium quality
$url = $service->thumbnail($service::THUMB_SIZE_MQ);

// standard quality
$url = $service->thumbnail($service::THUMB_SIZE_SQ);
```

Get thumbnail URL by Youtube video ID

```
// if you have video provider name and id (perhaps in your database)
$service = VideoHelper::serviceByName('Youtube');
$service->id = 'M7FIvfx5J10';

// high quality
$url = $service->thumbnail($service::THUMB_SIZE_HQ);

// medium quality
$url = $service->thumbnail($service::THUMB_SIZE_MQ);

// standard quality
$url = $service->thumbnail($service::THUMB_SIZE_SQ);
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec51292b55cf24ed12f90da9a7d26acd084af994544a6ffe4d436601931f3315?d=identicon)[ladamalina](/maintainers/ladamalina)

---

Top Contributors

[![ladamalina](https://avatars.githubusercontent.com/u/2093425?v=4)](https://github.com/ladamalina "ladamalina (8 commits)")

### Embed Badge

![Health badge](/badges/ladamalina-video-helper/health.svg)

```
[![Health](https://phpackages.com/badges/ladamalina-video-helper/health.svg)](https://phpackages.com/packages/ladamalina-video-helper)
```

PHPackages © 2026

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