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

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

supham/yii2-flysystem
=====================

1.0.0(5y ago)06MITPHP

Since May 27Pushed 5y ago1 watchersCompare

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

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

[Flysystem](/thephpleague/flysystem) + Yii2
===========================================

[](#flysystem--yii2)

Install
-------

[](#install)

```
composer require supham/yii2-flysystem --prefer-dist -o
```

Tersedia adapter API untuk Alfresco document management software

```
composer config repos.alfresco vcs https://github.com/sup-ham/alfresco-api-php-client.git
composer require supham/alfresco:@dev --prefer-dist -o
```

Tersedia Flysystem plugin `Supham\Flysystem\Plugin\PublicUrl`. untuk menggunakannya disyaratkan membuat dahulu implementasi realnya di masing-masing subclass adapter. lihat [list adapters](/thephpleague/flysystem#adapters). contohnya jika akan menggunaan adapter AliyunOss maka install dulu [xxtime/flysystem-aliyun-oss](/xxtime/flysystem-aliyun-oss) lalu pakai subclass adapter `Supham\Flysystem\Adapter\AliyunOss` yang telah tersedia.

Config yii2
-----------

[](#config-yii2)

```
$config['components']['fs'] = [
            '__class' => 'Supham\Flysystem\Filesystem',
            'plugins' => ['Supham\Flysystem\Plugin\PublicUrl'],
            'defaultAdapter' => 'cloud',
            'mounts' => [
              'tmp' => [
                '__class' => 'Supham\Flysystem\Adapter\Local',
                'args' => [ini_get('upload_tmp_dir') ?: sys_get_temp_dir()],
              ],
              'alfresco' => [
                '__class' => 'Supham\Flysystem\Adapter\Alfresco',
                'pathPrefix' => '-my-', // pilih satu [-root-, -my-, -shared-]
                'apiUrl' => 'http://127.0.0.1:8080/alfresco/api/',
                'username' => 'username',
                'password' => 'password',
              ],
              'aliyun-oss' => [
                '__class' => 'Supham\Flysystem\Adapter\AliyunOss',
                'args'=>[[
                  'bucket'         => aliyun_oss_bucket_name,
                  'endpoint'       => aliyun_oss_endpoint_address,
                  'accessId'       => aliyun_access_id,
                  'accessSecret'   => aliyun_access_secret,
                  // 'timeout'        => 3600,
                  // 'connectTimeout' => 10,
                  // 'isCName'        => false,
                  // 'token'          => '',
                ]],
              ],
            ],
],
```

Penggunaan
----------

[](#penggunaan)

Please refer to [Filesystem API](https://flysystem.thephpleague.com/v1/docs/usage/filesystem-api/)

```
      // Download file dari cloud
      $stream = Yii::$app->fs->readStream('path/to/file.txt');
      return Yii::$app->response->sendStreamAsFile($stream, 'downloaded-file.txt');

      // Upload content string
      $content = file_get_contents('/home/xubuncup/Documents/Akademi_VSGA_flyer.pdf');
      $a = Yii::$app->fs->write('arsip/filex.txt', $content);

      // Upload stream resource
      $stream = fopen('/home/xubuncup/Documents/Akademi_VSGA_flyer.pdf', 'r');
      $a = Yii::$app->fs->write('arsip/filex.txt', $stream);

      // Copy dari local /tmp ke alfresco
      Yii::$app->fs->copy("tmp:{$file->tempName}", "alfresco:$filePath", $config);

      // createDir
      $b = Yii::$app->fs->createDir('create_foldir_via_flysystem');
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

2174d ago

### Community

Maintainers

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

---

Top Contributors

[![yus-ham](https://avatars.githubusercontent.com/u/3823496?v=4)](https://github.com/yus-ham "yus-ham (7 commits)")

### Embed Badge

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

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

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M788](/packages/league-flysystem-aws-s3-v3)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.3M73](/packages/unisharp-laravel-filemanager)[league/flysystem-local

Local filesystem adapter for Flysystem.

226231.8M39](/packages/league-flysystem-local)[league/flysystem-bundle

Symfony bundle integrating Flysystem into Symfony applications

40029.5M87](/packages/league-flysystem-bundle)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6129.6M91](/packages/league-flysystem-sftp-v3)[league/flysystem-memory

In-memory filesystem adapter for Flysystem.

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

PHPackages © 2026

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