tadcka/downloader

Tadcka downloader component

dev-master 2014-09-01 08:10 UTC

This package is not auto-updated.

Last update: 2024-11-05 03:47:38 UTC


README

Build Status Scrutinizer Code Quality Code Coverage

Downloader component.

Installation

Step 1: Download TadckaPaginatorBundle using composer

Add Downloader in your composer.json:

{
    "require": {
        "tadcka/downloader": "dev-master"
    }
}

Now tell composer to download the component by running the command:

$ php composer.phar update tadcka/downloader

Step 3: How use?

File downloader example:

use Tadcka\Component\Downloader\FileDownloader;
use Symfony\Component\Filesystem\Filesystem;

...

$fileDownloader = new FileDownloader(new Filesystem());
$fileDownloader->download('https://test.org/test.txt', '/download-test/');

Image downloader example:

use Tadcka\Component\Downloader\Image\ImageDownloader;
use Symfony\Component\Filesystem\Filesystem;

...

$imageDownloader = new ImageDownloader(new Filesystem());
$imageDownloader->download('https://test.org/test.png', '/download-test/');