ivoba/video-preview-image-extractor

Video Preview Image Extractor

v1.0.0 2014-09-04 13:22 UTC

This package is auto-updated.

Last update: 2024-04-10 21:07:40 UTC


README

Build Status Total Downloads

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

License

The MIT License (MIT). Please see License File for more information.