PHPackages                             aweitian/filesystem - 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. aweitian/filesystem

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

aweitian/filesystem
===================

文件系统操作

v2.0.0(8y ago)01992MITPHPPHP &gt;=5.3.0

Since May 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/aweitian/filesystem)[ Packagist](https://packagist.org/packages/aweitian/filesystem)[ Docs](https://github.com/aweitian/filesystem)[ RSS](/packages/aweitian-filesystem/feed)WikiDiscussions master Synced 3d ago

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

文件系统操作
======

[](#文件系统操作)

文件系统组件用于对常用目录操作的实现

\[TOC\] ##开始使用

\####安装组件 使用 composer 命令进行安装或下载源代码使用。

```
composer require aweitian/filesystem

```

\####创建目录

```
Filesystem::createDir($dir, $auth = 0755, $recursive = true)

```

\####删除目录

```
Filesystem::delDir($dir, $delself = true);

```

\####复制目录

```
Filesystem::copyDir($old, $new, $copyself = false);

```

\####新建文件

```
copyDir("/aa/bb/c","/dd")  把c下所有的文件CP到/DD下
copyDir("/aa/bb/c","/dd",true)  把c下所有的文件CP到/DD/c下
Filesystem::touch($file);

```

\####删除文件

```
Filesystem::delFile($file);

```

\####目录大小

```
Filesystem::size('Home');

```

\####复制文件

```

Filesystem::copyFile($file, $to, $force = true)

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

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

3033d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f29043b8f5aebb2d7a34302c1bc1626bd711398bb0c5387cd8630b45057a4c9?d=identicon)[awei.tian](/maintainers/awei.tian)

---

Top Contributors

[![aweitian](https://avatars.githubusercontent.com/u/6269615?v=4)](https://github.com/aweitian "aweitian (6 commits)")

---

Tags

filesystemaweitian

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aweitian-filesystem/health.svg)

```
[![Health](https://phpackages.com/badges/aweitian-filesystem/health.svg)](https://phpackages.com/packages/aweitian-filesystem)
```

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.2k](/packages/league-flysystem)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[knplabs/knp-gaufrette-bundle

Allows to easily use the Gaufrette library in a Symfony project

72528.6M91](/packages/knplabs-knp-gaufrette-bundle)[league/flysystem-local

Local filesystem adapter for Flysystem.

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

Integrates Flysystem filesystem abstraction library to your Symfony project.

64422.9M66](/packages/oneup-flysystem-bundle)

PHPackages © 2026

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