PHPackages                             atellitech/flysystem-yii2 - 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. atellitech/flysystem-yii2

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

atellitech/flysystem-yii2
=========================

It's an adapter of file system for Yii2 that integrating with league/flysystem. But now only supports local, in memory and SFTP and will support AWS S3 or others adpater are developing ongoing.

1.0.0(3y ago)0341MITPHPPHP &gt;=8.0

Since Feb 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/AtelliTech/flysystem-yii2)[ Packagist](https://packagist.org/packages/atellitech/flysystem-yii2)[ Docs](https://github.com/AtelliTech/flysystem-yii2)[ RSS](/packages/atellitech-flysystem-yii2/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (1)

flysystem-yii2
==============

[](#flysystem-yii2)

It's an adapter of file system for Yii2 that integrating with league/flysystem. But now only supports local, in memory and SFTP and will support AWS S3 or others adpater are developing ongoing.

Supports
--------

[](#supports)

- Local
    Please see
- InMemory
    Please see
- SFTPv3
    Please see
- AWS S3/Async AWS S3
    Please see

Getting Start
-------------

[](#getting-start)

### Requirements

[](#requirements)

- php8.0+

### Install

[](#install)

```
$ /lib/path/composer require atellitech/flysystem-yii2

```

### Usage

[](#usage)

#### Local

[](#local)

##### Add component into config file of yii2 project

[](#add-component-into-config-file-of-yii2-project)

```
...
"components": [
    "fs" => [
        'class' => 'AtelliTech\\Yii2\\FlysystemAdapterLocal',
        'rootPath' => '@runtime', // support alias name of Yii2 or defined in configuration,
        'visibility' => [ // see https://flysystem.thephpleague.com/docs/visibility/
                'file' => [
                    'public' => 0640,
                    'private' => 0604,
                ],
                'dir' => [
                    'public' => 0740,
                    'private' => 7604,
                ],
            ],
        'writeFlag' => LOCK_EX, // see https://www.php.net/manual/en/function.flock.php
        'linkMode' => 2 // see https://github.com/thephpleague/flysystem/blob/3.x/src/Local/LocalFilesystemAdapter.php#L54
    ]
]

```

#### InMemory

[](#inmemory)

##### Add component into config file of yii2 project

[](#add-component-into-config-file-of-yii2-project-1)

```
...
"components": [
    "fs" => [
        'class' => 'AtelliTech\\Yii2\\FlysystemAdapterInMemory'
    ]
]

```

#### SFTPv3

[](#sftpv3)

##### Add component into config file of yii2 project

[](#add-component-into-config-file-of-yii2-project-2)

```
...
"components": [
    "fs" => [
        'class' => 'AtelliTech\\Yii2\\FlysystemAdapterSftpV3',
        'rootPath' => '/home/xxx',
        'host' => 'xxx', // host (required)
        'username' => 'xxx', // username (required)
        'password' => null, // password (optional, default: null) set to null if privateKey is used
        'privateKey' => null, // private key (optional, default: null) can be used instead of password, set to null if password is set
        'passphrase' => null, // passphrase (optional, default: null), set to null if privateKey is not used or has no passphrase
        'port' => 22, // port (optional, default: 22)
        'useAgent' => false, // use agent (optional, default: false)
        'timeout' => 30, // timeout (optional, default: 30)
        'maxTries' => 4, // max tries (optional, default: 4)
        'hostFingerprint' => null, // host fingerprint (optional, default: null),
        'connectivity' => null, // connectivity checker (must be an implementation of 'League\Flysystem\PhpseclibV2\ConnectivityChecker' to check if a connection can be established (optional, omit if you don't need some special handling for setting reliable connections)
        'visibility' [ // see https://flysystem.thephpleague.com/docs/visibility/
                'file' => [
                    'public' => 0640,
                    'private' => 0604,
                ],
                'dir' => [
                    'public' => 0740,
                    'private' => 7604,
                ],
            ],
    ]
]

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

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

1244d ago

### Community

Maintainers

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

---

Top Contributors

[![iamgold](https://avatars.githubusercontent.com/u/19813333?v=4)](https://github.com/iamgold "iamgold (2 commits)")

---

Tags

filesystemFlysystems3sftpyii2

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/atellitech-flysystem-yii2/health.svg)

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

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k285.7M1.0k](/packages/league-flysystem-aws-s3-v3)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M63](/packages/creocoder-yii2-flysystem)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6134.8M156](/packages/league-flysystem-sftp-v3)

PHPackages © 2026

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