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

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

consik/yii2-flysystem
=====================

Yii2 flysystem component

1.0(9y ago)013MITPHP

Since Mar 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/consik/yii2-flysystem)[ Packagist](https://packagist.org/packages/consik/yii2-flysystem)[ RSS](/packages/consik-yii2-flysystem/feed)WikiDiscussions master Synced 1mo ago

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

Yii2 Flysystem component
========================

[](#yii2-flysystem-component)

[![Latest Stable Version](https://camo.githubusercontent.com/8bbaa4ce51aa68cb465ad47c4816470b1ee76f7758f1ad0002efb54fbf238597/68747470733a2f2f706f7365722e707567782e6f72672f636f6e73696b2f796969322d666c7973797374656d2f762f737461626c65)](https://packagist.org/packages/consik/yii2-flysystem)[![Total Downloads](https://camo.githubusercontent.com/04f9254156d71a6524d83414c9c66d32bb3adcb8205535ba259fb92b5e29d2d0/68747470733a2f2f706f7365722e707567782e6f72672f636f6e73696b2f796969322d666c7973797374656d2f646f776e6c6f616473)](https://packagist.org/packages/consik/yii2-flysystem)[![License](https://camo.githubusercontent.com/33ba49ea4d65879659c4eac7823d293a2ae6cc7be03f53acc7dcfd52fea64422/68747470733a2f2f706f7365722e707567782e6f72672f636f6e73696b2f796969322d666c7973797374656d2f6c6963656e7365)](https://packagist.org/packages/consik/yii2-flysystem)

Yii2 component for working with [league/flysystem](https://github.com/thephpleague/flysystem).

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require consik/yii2-flysystem

```

or add

```
"consik/yii2-flysystem": "^1.0"
```

Using
-----

[](#using)

Define component in yii config for your filesystem:

```
//config/web.php for simple application
'components' => [
    ...
    'localFiles' => [
        'class' => consik\yii2flysystem\Filesystem::class,
        'adapter' => \League\Flysystem\Adapter\Local::class,
        'adapterParams' => [
            __DIR__ //first argument for Local adapter constructor is root dir
        ],
        'plugins' => [
            \League\Flysystem\Plugin\ListFiles::class
        ]
        //'config' => [] //\League\Flysystem\Filesystem config param
    ]
    ...
]
```

Use [Filesystem](https://github.com/thephpleague/flysystem/blob/master/src/Filesystem.php) methods via this component:

```
\Yii::$app->localFiles->listFiles();
...etc
```

See [DocBlock](/Filesystem.php) for more info about configuration params.

### FTP source example:

[](#ftp-source-example)

```
'components' => [
    ...
    'ftp' => [
        'class' => consik\yii2flysystem\Filesystem::class,
        'adapter' => \League\Flysystem\Adapter\Ftp::class,
        'adapterParams' => [
            [ //for FTP constructor first param is configuration array
                'host' => 'your.ftp.host',
                'username' => 'username',
                'password' => 'password'
            ]
        ],
        'plugins' => [
            \League\Flysystem\Plugin\ListFiles::class
        ]
    ]
    ...
]
```

List of available adapters or plugins see on official flysystem page:

That's all! Enjoy!

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3356d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b588c5ac2f7295ea6fd71b087e09c19235ca21527ee1688762b8950b5cd399a?d=identicon)[consik](/maintainers/consik)

---

Top Contributors

[![sp-labs](https://avatars.githubusercontent.com/u/45063261?v=4)](https://github.com/sp-labs "sp-labs (4 commits)")

---

Tags

ftpfilesystemFlysystemazurelocalyii2componentdropboxgoogle-drivesamba

### Embed Badge

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

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

###  Alternatives

[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M61](/packages/creocoder-yii2-flysystem)[league/flysystem-ftp

FTP filesystem adapter for Flysystem.

2820.8M101](/packages/league-flysystem-ftp)[wsw/simple-upload

Simple upload system

825.1k](/packages/wsw-simple-upload)[jerodev/flysystem-v3-smb-adapter

SMB adapter for Flysystem v3

1289.9k1](/packages/jerodev-flysystem-v3-smb-adapter)

PHPackages © 2026

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