PHPackages                             ntzm/tusk - 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. [API Development](/categories/api)
4. /
5. ntzm/tusk

ActiveLibrary[API Development](/categories/api)

ntzm/tusk
=========

PSR-7 compatible tus server for PHP

0.1.0(6y ago)731[1 PRs](https://github.com/ntzm/tusk/pulls)MITPHPPHP ^7.2CI failing

Since Jan 24Pushed 4y ago3 watchersCompare

[ Source](https://github.com/ntzm/tusk)[ Packagist](https://packagist.org/packages/ntzm/tusk)[ RSS](/packages/ntzm-tusk/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (14)Versions (2)Used By (0)

Tusk
====

[](#tusk)

PSR-7 compatible [tus](https://tus.io/) server for PHP
------------------------------------------------------

[](#psr-7-compatible-tus-server-for-php)

Available storage drivers
-------------------------

[](#available-storage-drivers)

### S3

[](#s3)

Stores files in S3

```
$storage = new Tusk\Storage\S3Storage(new Aws\S3\S3Client([
    'version' => '2006-03-01',
    'region' => 'eu-west-1',
]), 'bucket-name');
```

See the [documentation for PHP AWS SDK](https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_configuration.html) for more information.

ID Generation
-------------

[](#id-generation)

By default, file IDs are created using the `RandomHexIdGenerator`, which should give you 32-character IDs that look like `69ed96b70ab30c8f046e79b74faf481b`. If you'd like to change how this works, you can inject a custom class that implements `IdGenerator`.

Location Generation
-------------------

[](#location-generation)

When a file upload begins, the server returns a URL that the client can continue to send data to. By default this is whatever the POST URL is, plus the file ID. This is handled by the `RelativeLocationGenerator`.

For example, if the POST endpoint's URL was `/files`, the file location would be `files/`.

If you'd like to change this, you can inject a custom class that implements `LocationGenerator`.

Events
------

[](#events)

Tusk emits events when certain things happen during a file's lifecycle. You can hook into these with any [PSR-14](https://www.php-fig.org/psr/psr-14/) compatible event dispatcher implementation.

### `UploadComplete`

[](#uploadcomplete)

`Tusk\Event\UploadComplete` is fired when a file has been uploaded completely. It has one method, `fileId()` which can be called to get the file's ID.

Compatibility
-------------

[](#compatibility)

Tusk is compatible with tus 1.0.0 and the following extensions:

- [Creation](https://tus.io/protocols/resumable-upload.html#creation)
- [Termination](https://tus.io/protocols/resumable-upload.html#termination)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2351d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/103460227?v=4)[natzim](/maintainers/natzim)[@natzim](https://github.com/natzim)

---

Top Contributors

[![ntzm](https://avatars.githubusercontent.com/u/3888578?v=4)](https://github.com/ntzm "ntzm (28 commits)")

---

Tags

phptustus

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ntzm-tusk/health.svg)

```
[![Health](https://phpackages.com/badges/ntzm-tusk/health.svg)](https://phpackages.com/packages/ntzm-tusk)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M734](/packages/sylius-sylius)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.1M157](/packages/algolia-algoliasearch-client-php)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35789.4k2](/packages/telnyx-telnyx-php)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M572](/packages/shopware-core)

PHPackages © 2026

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