mixaroot/downloadimages

dev-master / 1.0.x-dev 2017-03-07 15:55 UTC

This package is not auto-updated.

Last update: 2025-06-12 00:46:14 UTC


README

Example install

composer require mixaroot/downloadimages dev-master --prefer-dist

Example Usage

Please create folder images in root of project

Please create index.php in root with:

require_once "vendor/autoload.php";
$imageTest = 'https://www.w3schools.com/css/paris.jpg';
$class = new Mixaroot\Downloadimages\DownloadImages();
$class->setRemoteUrl($imageTest, true)
    ->setLocalPath($_SERVER['DOCUMENT_ROOT'] . '\\' . 'images\\')
    ->setLocalName('test.jpg');
$copySize = $class->download();