Skip to content

Tviso/video-checker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video Checker

Latest Stable Version License

Check if a video is available online.

Installation

Require this package in your composer.json and run composer update:

"mascame/video-checker": "1.*"

Usage

Just use $provider->check(videoId) with the provider you want

$youtubeProvider = new Mascame\VideoChecker\YoutubeProvider();

var_dump($youtubeProvider->check('C7OfO6r_5m0')); // true
var_dump($youtubeProvider->check('CWO3Tuo35-o')); // false


$vimeoProvider = new Mascame\VideoChecker\VimeoProvider();

var_dump($vimeoProvider->check(31161781)); // true
var_dump($vimeoProvider->check('34134308a')); // false


$dailymotionProvider = new Mascame\VideoChecker\DailymotionProvider();

var_dump($dailymotionProvider->check('x38rpxc')); // true
var_dump($dailymotionProvider->check('x38rpxc3232')); // false

Changelog

1.0

  • Added Youtube, Vimeo & Dailymotion providers

Support

If you want to give your opinion, you can send me an email, comment the project directly (if you want to contribute with information or resources) or fork the project and make a pull request.

Also I will be grateful if you want to make a donation, this project hasn't got a death date and it wants to be improved constantly:

Website Button

License

MIT

About

Check if a video is available online.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%