2017 © Pedro Peláez
 

library simple-downloader

Simple file downloader

image

lezhnev74/simple-downloader

Simple file downloader

  • Monday, June 13, 2016
  • by lezhnev74
  • Repository
  • 1 Watchers
  • 0 Stars
  • 32 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

Downloader Bundle

Latest Stable Version Build Status Dependency Status License Total Downloads, (*1)

Simple Downloader (forked from kodify/DownloaderBundle but with no dependency on Symfony framework), (*2)

What is this Downloader?

It's a simple yet functional downloader that simply makes what it says in the tin, downloads the url specified in the specified path., (*3)

Installation

PHP 5.6+

Install PHP 5.6+ to use it, (*4)

Composer:

Add the following dependencies to your projects composer.json file:, (*5)

composer require lezhnev74/simple-downloader 

Usage

use Exception;
use InvalidArgumentException;
use SimpleDownloader\Classes\Downloader;
use SimpleDownloader\Exceptions\FileException;            

try {

  $downloader = new Downloader();
  $downloader->downloadFile("http://google.com/robots.txt", "/tmp", "robots.txt");
  echo "File was downloaded successfully!";

} catch(FileException $e) {
  echo "We have a problem with file: ".$e->getMessage();
} catch(InvalidArgumentException $e) {
  echo "Wrong arguments are passed: ".$e->getMessage();
} catch(Exception $e) {
  echo "Something bad happened: ".$e->getMessage();
}

The Versions

13/06 2016

dev-master

9999999-dev https://github.com/lezhnev74/SimpleDownloader

Simple file downloader

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6

 

The Development Requires

downloader simple downloader

28/12 2015

1.0.2

1.0.2.0 https://github.com/lezhnev74/SimpleDownloader

Simple file downloader

  Sources   Download

Apache-2.0

The Requires

  • php >=5.6

 

The Development Requires

downloader simple downloader

28/12 2015

1.0.0

1.0.0.0 https://github.com/lezhnev74/SimpleDownloader

Simple file downloader

  Sources   Download

Apache-2.0

The Requires

  • php >=5.3.3

 

The Development Requires

downloader simple downloader