library image-downloader
PHP lib for download images from remote host
tapakan/image-downloader
PHP lib for download images from remote host
- Thursday, September 22, 2016
- by Tapakan
- Repository
- 1 Watchers
- 0 Stars
- 9 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 13 % Grown
image-downloader
, (*1)
INSTALL
Add to require section, (*2)
"require" : {
"tapakan/image-downloader" : "0.0.1"
}
EXAMPLES
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');