Library for tus server
Switch branches/tags
Nothing to show
Clone or download

Zend Framework 2 Tus Server

Library for tus server (tus protocol 1.0)


use composer

Server Usage

 * Zend Framework action for uploading files
public function uploadAction() {
  // Create and configure server
  $debug = false;
  $server = new \ZfTusServer\Server('/path/to/save/file', 

  // Run server

If you are with an Apache server, add an .htaccess file to redirect all request in the php page (without that, your PATCH call failed), like :

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]


Jaroslaw Wasilewski

This library is based on library ( by Simon Leblanc