Skip to content

Asset downloader utility to use as a fallback when working locally and willing to sync with production

License

Notifications You must be signed in to change notification settings

koinephp/AssetDownloader

Repository files navigation

Koine AssetDownloader

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

About

Asset downloader utility to use as a fallback when working locally and willing to sync with production

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages