PHPackages                             grom/tube-link - 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. [Image &amp; Media](/categories/media)
4. /
5. grom/tube-link

Abandoned → [mpratt/embera](/?search=mpratt%2Fembera)ArchivedLibrary[Image &amp; Media](/categories/media)

grom/tube-link
==============

Extract video/music information from any URL and render HTML

v1.2.0(11y ago)2916.1k↓23.1%4[1 issues](https://github.com/GromNaN/TubeLink/issues)1MITPHPPHP &gt;=5.3.0

Since Nov 22Pushed 11y ago3 watchersCompare

[ Source](https://github.com/GromNaN/TubeLink)[ Packagist](https://packagist.org/packages/grom/tube-link)[ RSS](/packages/grom-tube-link/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (1)

TubeLink - Parse any video URL
==============================

[](#tubelink---parse-any-video-url)

**TubeLink** is a PHP library to extract identifier from any URL of video / music / ...

Supported Services
------------------

[](#supported-services)

For each video-sharing website of the following list, a *Service* class can identify a supported URL and extract the video ID.

- [Youtube](http://www.youtube.com/)
- [Dailymotion](http://www.dailymotion.com/)
- [Vimeo](http://www.vimeo.com/)
- [Spotify](http://www.spotify.com/)
- [SoundCloud](http://soundcloud.com/)
- ... more to come

Installation
============

[](#installation)

The recommended way to install TubeLink is through composer.

Just create a `composer.json` file for your project:

```
{
    "require": {
        "grom/tube-link": "dev-master"
    }
}
```

And run these two commands to install it:

```
$ wget http://getcomposer.org/composer.phar
$ php composer.phar install
```

Now you can add the autoloader, and you will have access to the library:

```
require 'vendor/autoload.php';
```

If you don't use neither **Composer** nor a *ClassLoader* in your application, just require the provided autoloader:

```
require_once 'src/autoload.php';
```

You're done.

Usage
=====

[](#usage)

```
use TubeLink\TubeLink;

$url = 'http://youtu.be/kffacxfA7G4';

$parser = new TubeLink();
$parser->registerService(new \TubeLink\Service\Youtube());

$tube = $parser->parse($url);

// Shows the embedded video HTML
echo $tube->render();

// Return the thumbnail
echo $tube->thumbnail();
```

Image Preview
=============

[](#image-preview)

This feature is only available for these services:

- Youtube
- Dailymotion
- Vimeo

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 92.6% 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 ~327 days

Total

3

Last Release

4270d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/400034?v=4)[Jérôme Tamarelle](/maintainers/GromNaN)[@GromNaN](https://github.com/GromNaN)

---

Top Contributors

[![GromNaN](https://avatars.githubusercontent.com/u/400034?v=4)](https://github.com/GromNaN "GromNaN (25 commits)")[![en0ne](https://avatars.githubusercontent.com/u/1500420?v=4)](https://github.com/en0ne "en0ne (1 commits)")[![jonathanza](https://avatars.githubusercontent.com/u/1636228?v=4)](https://github.com/jonathanza "jonathanza (1 commits)")

---

Tags

urlparservideoyoutubevimeodailymotionspotify

### Embed Badge

![Health badge](/badges/grom-tube-link/health.svg)

```
[![Health](https://phpackages.com/badges/grom-tube-link/health.svg)](https://phpackages.com/packages/grom-tube-link)
```

###  Alternatives

[chojnicki/video-platforms-parser

Easy to use SDK with grabber for multiple platforms at once like YouTube, Dailymotion, Facebook and more.

22226.4k](/packages/chojnicki-video-platforms-parser)[jonnitto/plyr

Plyr.io for Neos.io

1236.2k2](/packages/jonnitto-plyr)

PHPackages © 2026

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