tadcka / downloader
Tadcka downloader component
dev-master
2014-09-01 08:10 UTC
Requires
- php: >=5.3.3
- symfony/filesystem: ~2.3
Requires (Dev)
- phpunit/phpunit: ~4.2
This package is not auto-updated.
Last update: 2024-11-19 04:00:27 UTC
README
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/');