Add to require section
"require" : {
"tapakan/image-downloader" : "0.0.1"
}
require('vendor/autoload.php');
use Tapakan\ImageDownloader\Manager;
$manager = new Manager();
$manager->getDownloader()->load('http://example.com/path_to_img');
$manager->getDownloader()->load([
'http://example.com/path_to_img',
'http://example.com/path_to_img'
]);
// Change destination folder
$manager = new Manager([
'dir' => __DIR__
]);
$manager->getDownloader()->load('http://example.com/path_to_img');