ivoba / video-preview-image-extractor
Video Preview Image Extractor
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ivoba/video-preview-image-extractor
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: 2025-10-11 00:34:21 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.