PHPackages                             ricardofiorani/php-video-url-parser - 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. ricardofiorani/php-video-url-parser

Abandoned → [ricardofiorani/oembed](/?search=ricardofiorani%2Foembed)Library[Image &amp; Media](/categories/media)

ricardofiorani/php-video-url-parser
===================================

A Simple and efficient PHP Video URL Parser that gives you thumbnails and embed codes for various services as Youtube, Vimeo, DailyMotion and Facebook

v1.0.2(6y ago)63135.7k↓17.4%13[5 issues](https://github.com/ricardofiorani/php-video-url-parser/issues)[2 PRs](https://github.com/ricardofiorani/php-video-url-parser/pulls)MITPHPPHP &gt;=5.3

Since Aug 31Pushed 5y ago3 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (17)Used By (0)

DEPRECATED !
============

[](#deprecated-)

If you have PHP 7.4 or newer then please use  instead.
This lib will receive only small bugfixes, not new features anymore.

PHP Video URL Parser
====================

[](#php-video-url-parser)

[![Build Status](https://camo.githubusercontent.com/51c04d372799a36d038c801d50ea07ae88c2ab4e7cb57180510d762b37a547d5/68747470733a2f2f6170692e7472617669732d63692e6f72672f7269636172646f66696f72616e692f7068702d766964656f2d75726c2d7061727365722e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/ricardofiorani/php-video-url-parser)[![Minimum PHP Version](https://camo.githubusercontent.com/15652a39c31b79c4255f80c0ff59e65c6242b52bfe8cab3b6362d3d18d0df831/687474703a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e332d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/4d162bd2df2b82b85d2b4a9485556e2d19d6e2cde6dd86efb2a43c5abe4f3030/68747470733a2f2f706f7365722e707567782e6f72672f7269636172646f66696f72616e692f7068702d766964656f2d75726c2d7061727365722f6c6963656e73652e706e67)](https://packagist.org/packages/ricardofiorani/php-video-url-parser)[![Total Downloads](https://camo.githubusercontent.com/7f19a762831906c24fdceba4d9d304f46872d0cffed7bf1cfc167b36bf1d7dd4/68747470733a2f2f706f7365722e707567782e6f72672f7269636172646f66696f72616e692f7068702d766964656f2d75726c2d7061727365722f642f746f74616c2e706e67)](https://packagist.org/packages/ricardofiorani/php-video-url-parser)[![Coding Standards](https://camo.githubusercontent.com/bbde1fa96ef88cc4935dac2851741d5045ad4e348558501bc1031ca96926c7ef/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f63732d5053522d2d342d79656c6c6f772e737667)](https://github.com/php-fig-rectified/fig-rectified-standards)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c66f3319b41666d94d55db6e56026875e1495b8631dcc8cf853173e9e593949e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7269636172646f66696f72616e692f7068702d766964656f2d75726c2d7061727365722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ricardofiorani/php-video-url-parser/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/9c7341f6c3d9f4b66422cbe9307f0a4551b3ceefb66717aa26689e7f556fff33/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7269636172646f66696f72616e692f7068702d766964656f2d75726c2d7061727365722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ricardofiorani/php-video-url-parser/?branch=master)

PHP Video URL Parser is a parser that detects a given video url and returns an object containing information like the video's embed code, title, description, thumbnail and other information that the service's API may give.

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

[](#installation)

Install the latest version with

```
$ composer require ricardofiorani/php-video-url-parser
```

Requirements
------------

[](#requirements)

- PHP 5.3
- cURL (Or at least file\_get\_contents() enabled if you want to use it with Vimeo, otherwise it's not required)

Basic Usage
-----------

[](#basic-usage)

```
