Download the PHP package jkuchar/filedownloader without Composer

On this page you can find all versions of the php package jkuchar/filedownloader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filedownloader

File Downloader

Code Climate

looking for new maintainer(s) Please use Nette\Application\Responses\FileResponse instead. Or hi-speed solution X-Accel/NGINX or X-Sendfile/Apache.

Addon makes controlled downloads of files peace of cake. It supports client reconnections, segmented downloading, files over 4GB, automatic mime-type detection and special characters in file names. If you need to control download speed you are on the right site.

Installation

Install this addon just by calling: composer require jkuchar/filedownloader

Or to install example, continue to example repository. (one command set-up)

Basic usage: Just want to download file

Import FileDownloader from it's namespace

And use

Advanced usage: combination of advanced features

The same thing using fluent-interface:

Callbacks

When... ...download is cancelled ...download failed ...download succeded etc.

Callback name Description
BeforeDownloaderStarts Before downloader starts
BeforeOutputStarts Before output to browser starts (last chance to modify HTTP headers)
StatusChange When file download status changes (when block of file is sent or every second if there is no speed limit)
Complete When file download is finished
Abort When file download is aborted (user clicks cancel)
ConnectionLost When connection is lost (for whatever reason)
TransferContinue When paused transfer continues (this is start event for partial downloads)
NewTransferStart When new transfer from beginning starts (this is start event for downloads from beginning)

In repository there is example form that prints on screen all called callbacks.

Technical requirements

There are two downloaders AdvancedDownloader requires to set infinite time limit (tries to do so automatically). As fallback there is NativePHPDownloader available, this downloader requires as much memory as is file size on some PHP installtions. (php bug: if you've found solution, please let me know)

Callbacks, speed controlling and support for big files is only for AdvancedFileDownloader!

Support for huge files (over 4 GB)


All versions of filedownloader with dependencies

PHP Build Version
Package Version
Requires php Version >= 5.3.0
nette/application Version ~2.4
nette/deprecated Version ^2.4
jkuchar/bigfiletools Version >=1.1.0 <=2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jkuchar/filedownloader contains the following files

Loading the files please wait ....