PHPackages                             king52311/yii2-filemanage - 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. king52311/yii2-filemanage

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

king52311/yii2-filemanage
=========================

File Manage for Yii2

1.0.0(8y ago)019BSD-4-ClausePHP

Since Apr 24Pushed 8y agoCompare

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

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

File Manage for Yii2
====================

[](#file-manage-for-yii2)

File Manage for Yii2

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist king52311/yii2-filemanage "*"

```

or add

```
"king52311/yii2-filemanage": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
use king52311\filemanage\Filemanage;

......
public function actionTest2()
   {
       $list = Filemanage::showFileList('./','/base/path/','aaa.txt');
       var_dump($list);exit;
   }
```

Params
------

[](#params)

1. the first params is search directory relative path
2. the second params is will to substr base path for relative path
3. the third params is search file name to filter files.

Result
------

[](#result)

```
... ...
8 =>
   array (size=4)
     'file_path' => string './files/' (length=8)
     'file_name' => string 'files' (length=5)
     'file_type' => int 2
     'file_ids' => string '' (length=0)
 9 =>
   array (size=4)
     'file_path' => string './index.php' (length=11)
     'file_name' => string 'index.php' (length=9)
     'file_type' => int 1
     'file_ids' => string '' (length=0)
 10 =>
   array (size=4)
     'file_path' => string './robots.txt' (length=12)
     'file_name' => string 'robots.txt' (length=10)
     'file_type' => int 1
     'file_ids' => string '' (length=0)
 11 =>
   array (size=4)
     'file_path' => string './test.php' (length=10)
     'file_name' => string 'test.php' (length=8)
     'file_type' => int 1
     'file_ids' => string '' (length=0)
     ... ...

file_type: 1 file 2 directory

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

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

2940d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/142ca5aa28d972b01d15479c07a12a766e343d3fdf6ff65bd1a55af8af0baa3c?d=identicon)[snuday](/maintainers/snuday)

---

Top Contributors

[![king52311](https://avatars.githubusercontent.com/u/2328624?v=4)](https://github.com/king52311 "king52311 (7 commits)")

---

Tags

yii2extensionfile-manage

### Embed Badge

![Health badge](/badges/king52311-yii2-filemanage/health.svg)

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

###  Alternatives

[fedemotta/yii2-aws-sdk

This extension provides the AWS SDK integration for the Yii2 framework

15430.4k2](/packages/fedemotta-yii2-aws-sdk)[liyunfang/yii2-upload-behavior

Upload behavior for Yii 2

161.7k](/packages/liyunfang-yii2-upload-behavior)

PHPackages © 2026

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