ivoba / video-preview-image-extractor
Video Preview Image Extractor
v1.0.0
2014-09-04 13:22 UTC
Requires
- php: >=5.4
- grom/tube-link: ~1.1
- ivoba/image-extractor: ~1.0
Requires (Dev)
- ivoba/stop: ~0.2
- phpunit/phpunit: ~3.7
This package is auto-updated.
Last update: 2024-11-10 22:25:47 UTC
README
Video Preview Image Extension for ImageExtractor
Gets preview images from embedded videos in a html text. Supported platforms are:
- Vimeo
- Youtube
- Dailymotion
Usage
$extractorList = [new VimeoExtractor()]; $extractor = new ImageExtractor($extractorList, $filter = []); $images = $extractor->extract(file_get_contents($file));
A factory method for the default VideoPreviewImageExtractor is provided:
$extractor = VideoPreviewImageExtractor::create();
Testing
$ phpunit
Contributing
Please see CONTRIBUTING for details.
Credits
- Ivo Bathke(https://github.com/ivoba)
License
The MIT License (MIT). Please see License File for more information.