Download the PHP package tcb13/thunder-tus-php without Composer

On this page you can find all versions of the php package tcb13/thunder-tus-php. 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 thunder-tus-php

ThunderTUS PHP

Resumable file upload in PHP using tus resumable upload protocol v1.0.0.

tus is a HTTP based protocol for resumable file uploads. Resumable means you can carry on where you left off without re-uploading whole data again in case of any interruptions. An interruption may happen willingly if the user wants to pause, or by accident in case of a network issue or server outage.

thunder tus is the most reliable implementation of the tus protocol for PHP yet. Designed for high concurrency (real world scenarios) and integration simplicity it's free of external dependencies (complex caching engines etc.). It is also PSR-7 compliant in order to bring the tus protocol to modern PHP frameworks such as Slim 3.

extensions: building on the extensibility capabilities of the tus protocol, thunder tus also includes two new extensions:

Installation

Pull the package via composer.

Basic Usage

Use composer to install tcb13/thunder-tus-php and some other packages used in the following examples:

Create your tus-server.php file: Create the following `.htaccess` (or equivalent) at your virtual host: ` Now you can go ahead and upload a file using the TUS client included at `examples/client-express.php`. After the upload is finished you may retrieve the file in another script by calling: The file will be moved from the temporary storage backend to the $finalStorageDirectory directory.

You may also retrieve the final file as a stream with ThunderTUS\Server::completeAndStream() or keep on the same place as the temporary parts with ThunderTUS\Server::complete()

Storage Backends

In order to use ThunderTUS you must pick a storage backend. Those are used to temporally store the uploaded parts until the upload is completed. Storage backends come in a variety of flavours from the local filesystem to MongoBD's GridFS:

You may also implement your own storage backend by extending the StorageBackend class and/or implementing the StorageInterface interface.

S3 Storage Backend

You may later retrieve the finished upload as described above at the basic usage section.

ThunderTUS & Dependency Injection

ThunderTUS was designed to be integrated into dependency injection systems / containers. In simple scenarios you should pass an implementation of a PSR HTTP request and response to ThunderTUS's constructor, however this is optional. Sometimes it might be desirable to be able to instantiate the Server in a Service Provider and provide the PSR HTTP implementations later in a controller.

Example of a ThunderTUS service provider:

`` Now the controller that handles uploads:

` We've only provided the PSR HTTP request and response implementations on the controller by calling$server->loadHTTPInterfaces(..)`.

Client Implementations


All versions of thunder-tus-php with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
psr/http-message Version *
ext-json Version *
ext-curl Version *
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 tcb13/thunder-tus-php contains the following files

Loading the files please wait ....