PHPackages                             zing/flysystem-tos - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. zing/flysystem-tos

ActiveLibrary[File &amp; Storage](/categories/file-storage)

zing/flysystem-tos
==================

TOS filesystem adapter for Flysystem.

2.0.1(1y ago)39.6k↑13.2%[1 PRs](https://github.com/zingimmick/flysystem-tos/pulls)1MITPHPPHP ^8.0CI passing

Since Mar 28Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/zingimmick/flysystem-tos)[ Packagist](https://packagist.org/packages/zing/flysystem-tos)[ Docs](https://github.com/zingimmick/flysystem-tos)[ Fund](https://www.paypal.com/paypalme/zingimmick)[ RSS](/packages/zing-flysystem-tos/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (3)Dependencies (7)Versions (7)Used By (1)

Flysystem TOS
=============

[](#flysystem-tos)

[![tests](https://github.com/zingimmick/flysystem-tos/actions/workflows/tests.yml/badge.svg?branch=2.x)](https://github.com/zingimmick/flysystem-tos/actions/workflows/tests.yml)[![Code Coverage](https://camo.githubusercontent.com/616207a4bc469492412550ccc80954728c457c2e91269c835c3e182ff2bd08df/68747470733a2f2f636f6465636f762e696f2f67682f7a696e67696d6d69636b2f666c7973797374656d2d746f732f6272616e63682f322e782f67726170682f62616467652e737667)](https://codecov.io/gh/zingimmick/flysystem-tos)[![Latest Stable Version](https://camo.githubusercontent.com/4e1913dc0d1408a402cb8d0b664d757e31671dc4c612643511f569c6f14f368f/68747470733a2f2f706f7365722e707567782e6f72672f7a696e672f666c7973797374656d2d746f732f762f737461626c652e737667)](https://packagist.org/packages/zing/flysystem-tos)[![Total Downloads](https://camo.githubusercontent.com/cdb6fdb686bfcb15b09560edd48a1de04b9b37cf185139d4c8b00bc9970172cf/68747470733a2f2f706f7365722e707567782e6f72672f7a696e672f666c7973797374656d2d746f732f646f776e6c6f616473)](https://packagist.org/packages/zing/flysystem-tos)[![Latest Unstable Version](https://camo.githubusercontent.com/b77c0fc1994838adea3a01cc5f291308aa73764ae5757bfaa0cff94b21c3b2f9/68747470733a2f2f706f7365722e707567782e6f72672f7a696e672f666c7973797374656d2d746f732f762f756e737461626c652e737667)](https://packagist.org/packages/zing/flysystem-tos)[![License](https://camo.githubusercontent.com/4eda351d5b22650e4eaec8ce4fd0cbfd10d9fcb9e20078055c9d2cb801cb15af/68747470733a2f2f706f7365722e707567782e6f72672f7a696e672f666c7973797374656d2d746f732f6c6963656e7365)](https://packagist.org/packages/zing/flysystem-tos)

> **Requires**
>
> - **[PHP 8.0+](https://php.net/releases/)**
> - **[Flysystem 3.10+](https://github.com/thephpleague/flysystem/releases)**

Version Information
-------------------

[](#version-information)

VersionFlysystemPHP VersionStatus2.x3.10+&gt;= 8.0Active support 🚀1.x1.x&gt;= 7.2Active supportRequire Flysystem TOS using [Composer](https://getcomposer.org):

```
composer require zing/flysystem-tos
```

Usage
-----

[](#usage)

```
use League\Flysystem\Filesystem;
use Tos\TosClient;
use Zing\Flysystem\Tos\TosAdapter;

$prefix = '';
$config = [
    'ak' => 'aW52YWxpZC1rZXk=',
    'sk' => 'aW52YWxpZC1zZWNyZXQ=',
    'region' => 'cn-shanghai',
    'bucket' => 'test',
    'endpoint' => 'tos-cn-shanghai.volces.com',
];

$config['options'] = [
    'url' => '',
    'endpoint' => $config['endpoint'],
    'bucket_endpoint' => '',
    'temporary_url' => '',
];

$client = new TosClient($config);
$adapter = new TosAdapter($client, $config['bucket'], $prefix, null, null, $config['options']);
$flysystem = new Filesystem($adapter);
```

Integration
-----------

[](#integration)

- Laravel: [zing/laravel-flysystem-tos](https://github.com/zingimmick/laravel-flysystem-tos)

Reference
---------

[](#reference)

[league/flysystem-aws-s3-v3](https://github.com/thephpleague/flysystem-aws-s3-v3)

License
-------

[](#license)

Flysystem TOS is an open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance68

Regular maintenance activity

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 62.5% 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

Every ~182 days

Total

5

Last Release

53d ago

Major Versions

1.0.0 → 2.0.02024-03-28

1.x-dev → 2.0.12025-01-22

PHP version history (2 changes)1.0.0PHP ^7.2 || ^8.0

2.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5fafa5bffa28dcd722432b244bf3f0bfe773406df29fea295847e2397b95d50b?d=identicon)[zingimmick](/maintainers/zingimmick)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (25 commits)")[![zingimmick](https://avatars.githubusercontent.com/u/26657141?v=4)](https://github.com/zingimmick "zingimmick (13 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

filesystemflysystemtosfilesystemFlysystemfilefilesstoragetos

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zing-flysystem-tos/health.svg)

```
[![Health](https://phpackages.com/badges/zing-flysystem-tos/health.svg)](https://phpackages.com/packages/zing-flysystem-tos)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[league/flysystem-local

Local filesystem adapter for Flysystem.

225231.8M39](/packages/league-flysystem-local)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6129.6M91](/packages/league-flysystem-sftp-v3)[league/flysystem-async-aws-s3

AsyncAws S3 filesystem adapter for Flysystem.

2610.5M31](/packages/league-flysystem-async-aws-s3)[league/flysystem-memory

In-memory filesystem adapter for Flysystem.

8533.6M194](/packages/league-flysystem-memory)[league/flysystem-ziparchive

ZIP filesystem adapter for Flysystem.

1039.3M58](/packages/league-flysystem-ziparchive)

PHPackages © 2026

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