koine/asset-downloader

Downloads assets from a website

v1.0 2016-04-04 14:11 UTC

This package is not auto-updated.

Last update: 2024-04-13 15:50:39 UTC


README

Downloads assets from a website

Code information:

Build Status Coverage Status Code Climate Issue Count Scrutinizer Code Quality StyleCI

Package information:

Latest Stable Version Total Downloads Latest Unstable Version License Dependency Status

Usage

<?php

use Koine\AssetDownloader\AssetDownloader;
use Psr\Http\Message\UriInterface;

$assetDownloader = new AssetDownloader();
$assetDownloader
    ->from('https://example.com')
    ->to(realpath('./public'));

$downloader->download(new Uri('http://localhost/images/image-on-production-website.jpg'));

Installing

composer require koine/asset-downloader

Issues/Features proposals

Here is the issue tracker.

License

MIT

Authors