Download the PHP package ivoba/image-extractor without Composer
On this page you can find all versions of the php package ivoba/image-extractor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package image-extractor
Image Extractor
Extensible Image Extractor to find all Image tags in a string. The library uses the symfony DomCrawler as base of extraction.
- You can add multiple Extractors to find img tags or video tags to f.e resolve youtube thumbs. (or try the Video Preview Image Extractor)
- You can add own XPath expressions to ImageXPathExtractor.
- You can define custom & additional Extractors.
- You can add multiple Filter to filter the found Images.
- You can define custom Filter.
- You can resolve relative image pathes with a FixRelativePathFilter.
As extractor a ImageXPathExtractor gets shipped, which fetches all img tags.
These filters are provided:
- a StrPosFilter which filters images that contain one of the given filter strings.
- a FixRelativePathFilter that adds a basePath to all relative image paths.
Install
Via Composer
Usage
A factory method for the default ImageExtractor with a default ImageXPathExtractor is provided:
Testing
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.
All versions of image-extractor with dependencies
PHP Build Version
Package Version
The package ivoba/image-extractor contains the following files
Loading the files please wait ....