Download the PHP package ricardofiorani/php-video-url-parser without Composer
On this page you can find all versions of the php package ricardofiorani/php-video-url-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ricardofiorani/php-video-url-parser
More information about ricardofiorani/php-video-url-parser
Files in ricardofiorani/php-video-url-parser
Package php-video-url-parser
Short Description A Simple and efficient PHP Video URL Parser that gives you thumbnails and embed codes for various services as Youtube, Vimeo, DailyMotion and Facebook
License MIT
Informations about the package php-video-url-parser
DEPRECATED !
If you have PHP 7.4 or newer then please use https://github.com/ricardofiorani/oembed instead.
This lib will receive only small bugfixes, not new features anymore.
PHP Video URL Parser
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
Install the latest version with
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
Registering your own service video (it's easy !)
If you want to register an implementation of some service your class just needs to implement the "RicardoFiorani\Adapter\VideoAdapterInterface" or extend the RicardoFiorani\Adapter\AbstractServiceAdapter
A Fully functional example can be found Here.
PS: If you've made your awesome implementation of some well known service, feel free to send a Pull Request. All contributions are welcome :)
Using your own framework's template engine
A Fully functional example can be found Here.
Currently Suported Services
- Youtube
- Vimeo
- Dailymotion
- Facebook Videos
Currently Supported PHP Versions
- PHP 5.3
- PHP 5.4
- PHP 5.5
- PHP 5.6
- PHP 7.0
- PHP 7.1
- PHP 7.2
Please note that lib is not passing tests on HHVM, therefore, we can't guarantee it will work properly. Please use it on your own risk.