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. ntzm/tusk

ActiveLibrary

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 6d 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

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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

2305d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1fdd8cc588f54db13757aeca049b5007c6d368ff16a75dcecff337d1c9399970?d=identicon)[natzim](/maintainers/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.3k86.3M2.2k](/packages/symfony-symfony)[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[windwalker/framework

The next generation PHP framework.

25639.1k1](/packages/windwalker-framework)

PHPackages © 2026

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