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

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

airani/yii2-flysystem
=====================

Yii2 Flysystem Component

v1.0(8y ago)71851[1 PRs](https://github.com/airani/yii2-flysystem/pulls)BSD-3-ClausePHP

Since Aug 18Pushed 8y ago1 watchersCompare

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

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

Yii2 Flysystem Component
========================

[](#yii2-flysystem-component)

The [Flysystem](https://flysystem.thephpleague.com) component for [Yii2](http://www.yiiframework.com/) PHP framework with more flexibility than similar components and integrated with Flysystem [MountManager](https://flysystem.thephpleague.com/mount-manager) and returns Flysystem objects as Yii2 component that helps to work with other libraries integrated with Flysystem like [Glide](http://glide.thephpleague.com) .

Installation
============

[](#installation)

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

Either run

```
composer require airani/yii2-flysystem

```

or add

```
"airani/yii2-flysystem": "~1.0"

```

to the require section of your composer.json file.

Configuring
===========

[](#configuring)

Configure application components for any of filesystem adapter as follows

```
return [
    // ...
    'componenets' => [
        // ...
        'flysystem' => [
            'class' => 'airani\flysystem\MountManager',
            'localFs' => [ // https://flysystem.thephpleague.com/adapter/local/
                'class' => 'League\Flysystem\Adapter\Local',
                'root' => __DIR__.'/path/to/too',
            ],
            'ftpFs' => [ // https://flysystem.thephpleague.com/adapter/ftp/
                'class' => 'League\Flysystem\Adapter\Ftp',
                'config' => [
                    'host' => 'ftp.example.com',
                    'username' => 'username',
                    'password' => 'password',

                    // optional config settings
                    'port' => 21,
                    'root' => '/path/to/root',
                    'passive' => true,
                    'ssl' => true,
                    'timeout' => 30,
                ],
            ],
            // and config other filesystem adapters
            // read adapters section of flysystem guide https://flysystem.thephpleague.com
        ],
    ],
];
```

Usage
=====

[](#usage)

To work with [MountManager](https://flysystem.thephpleague.com/mount-manager/) :

```
// Read from FTP
$contents = Yii::$app->flysystem->read('ftp://some/file.txt');

// And write to local
Yii::$app->flysystem->write('local://put/it/here.txt', $contents);
```

Or simple usage:

```
Yii::$app->filesystem->localFs->write('path/to/file.txt', 'contents');
```

for how to work with flysystem read this api [documentation](https://flysystem.thephpleague.com/api/) .

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

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

3237d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b19a545ec3a2d7418f152243ecc495482e0e5808c12606e47656d1c8c003ec8d?d=identicon)[airani](/maintainers/airani)

---

Top Contributors

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

---

Tags

componentflysystemyii2yii2-extensionfilesystemFlysystemyii2component

### Embed Badge

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

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

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k277.8M964](/packages/league-flysystem-aws-s3-v3)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2861.7M63](/packages/creocoder-yii2-flysystem)[league/flysystem-bundle

Symfony bundle integrating Flysystem into Symfony applications

40331.4M120](/packages/league-flysystem-bundle)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6133.1M134](/packages/league-flysystem-sftp-v3)[jerodev/flysystem-v3-smb-adapter

SMB adapter for Flysystem v3

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

PHPackages © 2026

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