andreaslancom/image_downloader

Package for downloading images from remote host

Installs: 17

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 1

pkg:composer/andreaslancom/image_downloader

dev-master 2015-11-19 15:31 UTC

This package is not auto-updated.

Last update: 2025-10-11 23:22:19 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