Skip to content

andreaslancom/image_downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image downloader package

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages