ivoba / 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-09-10 22:12:39 UTC
README
ImageExtractor 的视频预览图像扩展 ImageExtractor
从 HTML 文本中嵌入的视频获取预览图像。支持的平台包括
- Vimeo
- Youtube
- Dailymotion
用法
$extractorList = [new VimeoExtractor()]; $extractor = new ImageExtractor($extractorList, $filter = []); $images = $extractor->extract(file_get_contents($file));
提供了默认 VideoPreviewImageExtractor 的工厂方法
$extractor = VideoPreviewImageExtractor::create();
测试
$ phpunit
贡献
有关详细信息,请参阅 CONTRIBUTING
致谢
- Ivo Bathke(https://github.com/ivoba)
许可证
MIT 许可证 (MIT)。有关更多信息,请参阅 许可证文件