andreaslancom / image_downloader
Package for downloading images from remote host
dev-master
2015-11-19 15:31 UTC
Requires
- php: >=5.4.0
Requires (Dev)
- phpunit/phpunit: 5.0.*
This package is not auto-updated.
Last update: 2024-10-26 18:17:28 UTC
README
This package allows to upload image to server by image url.
Installation
The preferred way to install this extension is through composer.
Either run
composer require andreaslancom/image_downloader:dev-master
or add
"andreaslancom/image_downloader": "dev-master"
to the require
section of your composer.json.
Usage & Documentation
This package allows to upload image to server by image url.
The following example shows how to use this package:
use image\download\ImageDownloader; // download an image $imageDownloader = new ImageDownloader(); $imageDownloader->download( 'http://some_image_addr.ext', 'project_root_path'.DIRECTORY_SEPARATOR.'writable_directory' );
Note if upload directory $dir not exists that the system tries to create this