2017 © Pedro Peláez
 

library tube-link

Extract video/music information from any URL and render HTML

image

grom/tube-link

Extract video/music information from any URL and render HTML

  • Monday, September 8, 2014
  • by GromNaN
  • Repository
  • 3 Watchers
  • 26 Stars
  • 3,886 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 4 Versions
  • 8 % Grown

The README.md

TubeLink - Parse any video URL

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

Supported Services

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

Installation

The recommended way to install TubeLink is through composer., (*3)

Just create a composer.json file for your project:, (*4)

``` json { "require": { "grom/tube-link": "dev-master" } }, (*5)


And run these two commands to install it: ``` bash $ wget http://getcomposer.org/composer.phar $ php composer.phar install

Now you can add the autoloader, and you will have access to the library:, (*6)

``` php require 'vendor/autoload.php';, (*7)


If you don't use neither **Composer** nor a _ClassLoader_ in your application, just require the provided autoloader: ``` php require_once 'src/autoload.php';

You're done., (*8)

Usage

``` php use TubeLink\TubeLink;, (*9)

$url = 'http://youtu.be/kffacxfA7G4';, (*10)

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

$tube = $parser->parse($url);, (*12)

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

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

Image Preview

This feature is only available for these services:, (*15)

  • Youtube
  • Dailymotion
  • Vimeo

The Versions

08/09 2014

dev-master

9999999-dev

Extract video/music information from any URL and render HTML

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Jérôme Tamarelle

parser url video youtube dailymotion spotify vimeo

08/09 2014

v1.2.0

1.2.0.0

Extract video/music information from any URL and render HTML

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Jérôme Tamarelle

parser url video youtube dailymotion spotify vimeo

19/11 2013

v1.1.0

1.1.0.0

Extract video/music information from any URL and render HTML

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Jérôme Tamarelle

parser url video youtube dailymotion spotify vimeo

22/11 2012

v1.0.0

1.0.0.0

Extract video/music information from any URL and render HTML

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Jérôme Tamarelle

parser url video youtube dailymotion spotify vimeo