Skip to content

ivoba/video-preview-image-extractor

Repository files navigation

Videopreview Image Extractor

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.

About

Video Preview Image Extension for ImageExtractor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages