PHPackages                             modufolio/tus-psr7 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. modufolio/tus-psr7

ActiveLibrary

modufolio/tus-psr7
==================

TUS (Tus Resumable Upload Protocol) server implementation for PHP

020↓100%PHPCI passing

Since Mar 13Pushed 1mo agoCompare

[ Source](https://github.com/modufolio/tus-psr7)[ Packagist](https://packagist.org/packages/modufolio/tus-psr7)[ RSS](/packages/modufolio-tus-psr7/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

TUS PSR-7
=========

[](#tus-psr-7)

[![License: MIT](https://camo.githubusercontent.com/c2bffd81d308ced1cc3b0d66fb0ed453ab478a5e17c988b780f9de986a390ee2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://opensource.org/licenses/MIT) [![codecov](https://camo.githubusercontent.com/633062f12a11310aa84aa6b0612c0bed56b4372c22af79ad77b00161fb9c1d60/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6d6f6475666f6c696f2f7475732d707372373f746f6b656e3d394458484a5732414436267374796c653d666c61742d737175617265)](https://codecov.io/gh/modufolio/tus-psr7)

A PHP implementation of the [TUS resumable upload protocol](https://tus.io/).

Installation
------------

[](#installation)

```
composer require modufolio/tus-psr7
```

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- PSR-7 HTTP Message implementation

Usage
-----

[](#usage)

```
use Modufolio\Tus\TusServer;

$uploadDir = '/path/to/uploads';
$maxSize = 1024 * 1024 * 100; // 100MB
$chunkSize = 1024 * 1024 * 5; // 5MB

$server = new TusServer($uploadDir, $maxSize, $chunkSize);

// Handle the request
$response = $server->handle($request);
```

Features
--------

[](#features)

- TUS protocol v1.0.0 compliant
- Resumable file uploads
- Checksum verification support (md5, sha1, sha256, sha512)
- Configurable storage backends
- MIME type validation
- Automatic cleanup of expired uploads

License
-------

[](#license)

MIT

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance59

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/44315162577333baa74802d06e9c5dd2f3a44117b45551faa8e1d50b9d7b0c78?d=identicon)[modufolio](/maintainers/modufolio)

---

Top Contributors

[![modufolio](https://avatars.githubusercontent.com/u/18153996?v=4)](https://github.com/modufolio "modufolio (9 commits)")

### Embed Badge

![Health badge](/badges/modufolio-tus-psr7/health.svg)

```
[![Health](https://phpackages.com/badges/modufolio-tus-psr7/health.svg)](https://phpackages.com/packages/modufolio-tus-psr7)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
