Allows you to download images from remote images in a cost effective way. Before downloading an image it makes a HEAD
request and checks the Content-Type
, and Content-Length
headers in HTTP Response.
If server reports an image is at that URL, Image Downloader will issue a GET
request and download the image.
- PHP 7 or greater
php-gd
extensionphp-curl
extension- PHP Multi-Byte support enabled
This project follows semver
TODO
TODO
You can run tests using PHPUnit:
$ vendor/bin/phpunit -c phpunit.xml.dist tests
- Make this a RESTful service