Download the PHP package mascame/video-checker without Composer
On this page you can find all versions of the php package mascame/video-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mascame/video-checker
More information about mascame/video-checker
Files in mascame/video-checker
Package video-checker
Short Description Check if a video is available online.
License MIT
Homepage https://github.com/marcmascarell/video-checker
Informations about the package video-checker
Video Checker
Check if a video is available online.
Installation
Require this package in your composer.json and run composer update:
"mascame/video-checker": "2.*"
Usage
Just use $provider->check(videoId)
with the provider you want
Running tests
Install composer dependencies in development mode
composer update --dev
vendor/bin/phpunit tests/TestVideoChecker.php
Changelog
2.3
- Youtube Provider: Throw exception if API call fails or has errors (to avoid false negatives)
2.2
- Fixes stored Ids when was not in API response items
- Youtube Provider: get total API calls
2.1
- Allows array as parameter in 'check' method (output will be an array ['video-id' => bool, 'video-id2' => bool])
- Youtube Provider: Using ids parameter as array will avoid unneeded API calls (and dont waste quota)
2.0
- Allow Youtube API check without country specified
- Simplified API
- Updated tests
1.2
- Added API key injection via constructor for YoutubeProvider
1.1
- Added checkByCountry for YoutubeProvider
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:
License
MIT