PHPackages                             yalesov/file-system-manager - 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. yalesov/file-system-manager

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

yalesov/file-system-manager
===========================

A collection of file and directory management functions.

v2.0.6(9y ago)582416ISCPHPPHP &gt;=5.3.3

Since Sep 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/yalesov/php-file-system-manager)[ Packagist](https://packagist.org/packages/yalesov/file-system-manager)[ Docs](https://github.com/yalesov/php-file-system-manager)[ RSS](/packages/yalesov-file-system-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (13)Used By (6)

Yalesov\\FileSystemManager
==========================

[](#yalesovfilesystemmanager)

[![Build Status](https://camo.githubusercontent.com/4d779e44ba2ce01a222afb826a76afbded073562f2456db1d7bde9ba510981b7/68747470733a2f2f7472617669732d63692e6f72672f79616c65736f762f7068702d66696c652d73797374656d2d6d616e616765722e737667)](https://travis-ci.org/yalesov/php-file-system-manager)

A collection of often-used file and directory management functions not present in PHP core.

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

[](#installation)

[Composer](http://getcomposer.org/):

```
{
  "require": {
    "yalesov/file-system-manager": "2.*"
  }
}
```

Usage
=====

[](#usage)

Recursively iterate the directory `foo`, listing all files (child-last):

```
use \Yalesov\FileSystemManager\FileSystemManager;
foreach (FileSystemManager::fileIterator('foo') as $file) {
  echo $file; // /path/to/file
}
```

Recursively iterate the directory `foo`, listing all directories (child-first):

```
use \Yalesov\FileSystemManager\FileSystemManager;
foreach (FileSystemManager::dirIterator('foo') as $dir) {
  echo $dir; // /path/to/child/dir
}
```

Recursive [rmdir](http://php.net/manual/en/function.rmdir.php): remove the directory `foo` along with all child directories and files

```
use \Yalesov\FileSystemManager\FileSystemManager;
FileSystemManager::rrmdir('foo');
```

Recursive [copy](http://php.net/manual/en/function.copy.php): copy the directory `foo` to `bar` along with all child directories and files

**Warning: this function overwrites existing files**

```
use \Yalesov\FileSystemManager\FileSystemManager;
FileSystemManager::rcopy('foo', 'bar');
```

`rcopy` will copy into existing directories if they already exist. By default, it will create non-existent directories with permission `0755`. You can change this by specifying the third parameter:

```
FileSystemManager::rcopy('foo', 'bar', 0777);
```

Recursive [chmod](http://php.net/manual/en/function.chmod.php): chmod the directory `foo` to `0755`, along with all child directories and files

```
use \Yalesov\FileSystemManager\FileSystemManager;
FileSystemManager::rchmod('foo', 0755);
```

Recursive [chown](http://php.net/manual/en/function.chown.php): chown the directory `foo` to `www-data`, along with all child directories and files

```
use \Yalesov\FileSystemManager\FileSystemManager;
FileSystemManager::rchown('foo', 'www-data');
```

Recursive [chgrp](http://php.net/manual/en/function.chgrp.php): chgrp the directory `foo` to `www-data`, along with all child directories and files

```
use \Yalesov\FileSystemManager\FileSystemManager;
FileSystemManager::rchown('foo', 'www-data');
```

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity65

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

Every ~127 days

Recently: every ~0 days

Total

12

Last Release

3594d ago

Major Versions

1.1.3 → v2.0.02016-07-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c284282a506ac3c908eda03eb11cc263a4457f2e3cc23cbe3e9b97830589e31?d=identicon)[yalesov](/maintainers/yalesov)

---

Top Contributors

[![yalesov](https://avatars.githubusercontent.com/u/20264293?v=4)](https://github.com/yalesov "yalesov (18 commits)")

---

Tags

filemanagerdirectorysystemdir

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yalesov-file-system-manager/health.svg)

```
[![Health](https://phpackages.com/badges/yalesov-file-system-manager/health.svg)](https://phpackages.com/packages/yalesov-file-system-manager)
```

###  Alternatives

[adlawson/vfs

Virtual file system

300433.0k21](/packages/adlawson-vfs)[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)[alexusmai/laravel-file-manager

File manager for Laravel

1.2k757.8k8](/packages/alexusmai-laravel-file-manager)[servocoder/richfilemanager

RichFilemanager - highly customizable open-source file manager

90962.0k2](/packages/servocoder-richfilemanager)[oneduo/nova-file-manager

A handy file manager tool for Laravel Nova

157350.3k2](/packages/oneduo-nova-file-manager)[wikimedia/relpath

Work with file paths to join or find the relative path

11894.3k2](/packages/wikimedia-relpath)

PHPackages © 2026

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