artyomshaitor/image-package

Composer package that can download images from a remote to the server

Installs: 48

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

pkg:composer/artyomshaitor/image-package

v2.0.6 2016-01-11 21:28 UTC

This package is not auto-updated.

Last update: 2025-12-17 01:08:34 UTC


README

Composer package that can download images from a remote to the server

Installation

Install the latest version with

$ composer require artyomshaitor/image-package
$ composer update

Usage

use SRC\ImageDownloader;

require __DIR__ . '/vendor/autoload.php';

$loader = new ImageDownloader();
$loader->downloadImage("https://pp.vk.me/c7003/v7003346/15ecb/fBZpkWNulu4.jpg"); // simple image downloading
$loader->downloadImage("https://pp.vk.me/c7003/v7003346/15ecb/fBZpkWNulu4.jpg",['jpg', 'png']); // download only image with ".jpg" or ".png" types 
$loader->downloadImage("https://pp.vk.me/c7003/v7003346/15ecb/fBZpkWNulu4.jpg", [], 'images'); // download image to 'images' folder

Requirements

  • Image Downloader works with PHP 5.3 or above.

Author

Artyom Shaitor - artyomshaitor@gmail.com - http://twitter.com/artyom_shaitor
my VK page - http://vk.com/artyomshaitor

License

Image Downloader is licensed under the MIT License.