PHPackages                             kphoen/vex - 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. kphoen/vex

AbandonedLibrary[Image &amp; Media](/categories/media)

kphoen/vex
==========

Extract videos from any URL

1.1.5(11y ago)243491MITPHP

Since Jan 6Pushed 9y ago3 watchersCompare

[ Source](https://github.com/K-Phoen/Vex)[ Packagist](https://packagist.org/packages/kphoen/vex)[ RSS](/packages/kphoen-vex/feed)WikiDiscussions master Synced 1mo ago

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

Vex - Parse any video URL [![Build Status](https://camo.githubusercontent.com/95e77c02a81a0032511808c0109a2f9427afa0edb7c0e32684e04e66cd9899ef/68747470733a2f2f7472617669732d63692e6f72672f4b2d50686f656e2f5665782e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/K-Phoen/Vex)
==========================================================================================================================================================================================================================================================================================

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

**Vex** is a PHP library to extract a video from any URL.

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

[](#supported-services)

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

- [Youtube](http://www.youtube.com/)
- [Dailymotion](http://www.dailymotion.com/)
- [Vimeo](http://vimeo.com/)
- [Wat](http://wat.tv/)
- [Rutube](http://rutube.ru/)
- [Qip](http://qip.ru/)
- [Veevr](http://veevr.com/)
- [TagTele](http://www.tagtele.com/)
- ... more to come

Status
======

[](#status)

This project is **DEPRECATED** and should NOT be used.

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

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

[](#installation)

The recommended way to install Vex is through composer.

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

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 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
=====

[](#tests)

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

```
php composer.phar install --dev
```

Once installed, just launch the following command:

```
phpunit
```

Credits
=======

[](#credits)

- [Kévin Gomez](https://github.com/K-Phoen/)
- [William Durand](https://github.com/willdurand/) - for the `HttpAdapter` part, which was borrowed from [Geocoder](https://github.com/willdurand/Geocoder)
- [Jérôme Tamarelle](https://github.com/GromNaN/) - to whom I borrowed this README

License
=======

[](#license)

Vex is released under the MIT License. See the bundled LICENSE file for details.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity68

Established project with proven stability

 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 ~95 days

Recently: every ~118 days

Total

8

Last Release

4210d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/66958?v=4)[Kévin Gomez](/maintainers/K-Phoen)[@K-Phoen](https://github.com/K-Phoen)

---

Top Contributors

[![K-Phoen](https://avatars.githubusercontent.com/u/66958?v=4)](https://github.com/K-Phoen "K-Phoen (52 commits)")

---

Tags

urlparservideoextractordailymotionrutube

### Embed Badge

![Health badge](/badges/kphoen-vex/health.svg)

```
[![Health](https://phpackages.com/badges/kphoen-vex/health.svg)](https://phpackages.com/packages/kphoen-vex)
```

###  Alternatives

[php-ffmpeg/php-ffmpeg

FFMpeg PHP, an Object Oriented library to communicate with AVconv / ffmpeg

5.0k21.7M165](/packages/php-ffmpeg-php-ffmpeg)[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.4k855.0k18](/packages/danog-madelineproto)[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)[vimeo/vimeo-api

Official PHP library for the Vimeo API.

4637.1M32](/packages/vimeo-vimeo-api)[vimeo/laravel

A Vimeo bridge for Laravel

4161.5M4](/packages/vimeo-laravel)[s9e/text-formatter

Multi-purpose text formatting and markup library. Plugins offer support for BBCodes, Markdown, emoticons, HTML, embedding third-party media (YouTube, etc...), enhanced typography and more.

2413.1M29](/packages/s9e-text-formatter)

PHPackages © 2026

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