2017 © Pedro Peláez
 

library vex

Extract videos from any URL

image

kphoen/vex

Extract videos from any URL

  • Sunday, May 29, 2016
  • by K-Phoen
  • Repository
  • 3 Watchers
  • 25 Stars
  • 338 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Vex - Parse any video URL Build Status

Vex is a PHP library to extract a video from any URL., (*1)

Supported Services

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

Status

This project is DEPRECATED and should NOT be used., (*3)

If someone magically appears and wants to maintain this project, I'll gladly give access to this repository., (*4)

Installation

The recommended way to install Vex is through composer., (*5)

{
    "require": {
        "kphoen/vex": "1.1.*"
    }
}

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

require_once 'src/autoload.php';

You're done., (*7)

Usage

use Vex\Vex;

$adapter = new \Vex\HttpAdapter\BuzzHttpAdapter();
$platform = \Vex\Platform\RutubePlatform($adapter);
$vex = new Vex($platform);

$video = $vex->extract('https://rutube.ru/video/b5a392c180ddfe3e1ebded38f9f9dc52/');

// Show the video title
echo $video->getTitle();
// Shows the embedded video HTML
echo $video->getCode();
// Show the video link
echo $video->getLink();
// Show the video duration
echo $video->getDuration();
// Show the video thumbnail
echo $video->getThumb();


$url = $vex->reverse('



');
// shows http://rutube.ru/video/9f4dc6bc2db6b6051ea07fb20234c6cc/
echo $url

Tests

To run unit tests, you'll need cURL and a set of dependencies you can install using Composer:, (*8)

php composer.phar install --dev

Once installed, just launch the following command:, (*9)

phpunit

Credits

License

Vex is released under the MIT License. See the bundled LICENSE file for details., (*10)

The Versions

29/05 2016

dev-master

9999999-dev

Extract videos from any URL

  Sources   Download

MIT

The Development Requires

parser url video extractor dailymotion rutube

07/11 2014

1.1.5

1.1.5.0

Extract videos from any URL

  Sources   Download

MIT

The Development Requires

parser url video extractor dailymotion rutube

19/05 2014

1.1.4

1.1.4.0

Extract videos from any URL

  Sources   Download

MIT

The Development Requires

parser url video extractor dailymotion rutube

19/05 2014

1.1.3

1.1.3.0

Extract videos from any URL

  Sources   Download

MIT

The Development Requires

parser url video extractor dailymotion rutube

15/08 2013

1.1.2

1.1.2.0

Extract videos from any URL

  Sources   Download

MIT

The Development Requires

parser url video extractor dailymotion rutube

21/07 2013

1.1.1

1.1.1.0

  Sources   Download

MIT

The Development Requires

parser url video extractor dailymotion rutube

02/02 2013

1.1.0

1.1.0.0

  Sources   Download

MIT

The Development Requires

parser url video extractor dailymotion rutube

26/01 2013

1.0.1

1.0.1.0

  Sources   Download

MIT

The Development Requires

parser url video extractor dailymotion rutube

06/01 2013

1.0.0

1.0.0.0

  Sources   Download

MIT

The Development Requires

parser url video extractor dailymotion rutube