PHP code example of tapakan / image-downloader
1. Go to this page and download the library: Download tapakan/image-downloader library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tapakan / image-downloader example snippets
" "tapakan/image-downloader" : "0.0.1"
}
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');