PHPackages                             madhankumar/directory-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. madhankumar/directory-manager

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

madhankumar/directory-manager
=============================

A PHP package for directory and file management

v1.0.1(1y ago)03MITPHPPHP &gt;=7.4

Since Dec 17Pushed 12mo ago1 watchersCompare

[ Source](https://github.com/madhan-kumar05/PHPDirectoryManager)[ Packagist](https://packagist.org/packages/madhankumar/directory-manager)[ RSS](/packages/madhankumar-directory-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

PHP Directory manager
=====================

[](#php-directory-manager)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a7650024d7c85e24ad5f98bf3cd118c0ce6d564f80943219da0ca45ef07b7583/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616468616e6b756d61722f6469726563746f72792d6d616e616765722e737667)](https://packagist.org/packages/madhankumar/directory-manager)

A PHP package for manage your directory

Setup
-----

[](#setup)

Ensure you have [composer](http://getcomposer.org) installed, then run the following command:

```
composer require madhankumar/directory-manager
```

That will fetch the library and its dependencies inside your vendor folder. Then you can add the following to your .php files in order to use the library

```
require_once __DIR__.'/vendor/autoload.php';
```

Then you need to `use` the relevant classes:

```
use Madhankumar\DirectoryManager\DirectoryManager;
```

Usage
=====

[](#usage)

```
$directoryManager = new DirectoryManager();
```

List all folders and files in the given path:

```
$this->directoryManager->listDirectory("/var/www/html");
```

The above function list all folders and files in the below format

```
{
    "folders": [ // Array
        {
            "id": int,
            "name":  string, // Folder name
            "size": int, // Folder size
            "created_time": string, // Folder created date timestamp in the format of Y-m-d HH:mm:ss
            "modified_time":  string, // Folder modified date timestamp in the format of Y-m-d HH:mm:ss
            "created_timestamp": int, // timestamp
            "modified_timestamp": int, // timestamp
        },
        ...
    ],
    "files": [ // Array
        {
            "id": int,
            "name":  string, // File name
            "path": string, // File full path
            "size": int, // File size
            "created_time": string, // Folder created date timestamp in the format of Y-m-d HH:mm:ss
            "modified_time":  string, // Folder modified date timestamp in the format of Y-m-d HH:mm:ss
            "created_timestamp": int, // timestamp
            "modified_timestamp": int, // timestamp
        },
        ...
    ]
}
```

Author: Madhankumar

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance45

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

Every ~0 days

Total

2

Last Release

516d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bfeed7127e7a74fa611b46aaa2db1ed13784b933072fde7c0d5e7fca2b5e2b7?d=identicon)[madhankumar](/maintainers/madhankumar)

---

Top Contributors

[![madhan-kumar05](https://avatars.githubusercontent.com/u/58217399?v=4)](https://github.com/madhan-kumar05 "madhan-kumar05 (7 commits)")

### Embed Badge

![Health badge](/badges/madhankumar-directory-manager/health.svg)

```
[![Health](https://phpackages.com/badges/madhankumar-directory-manager/health.svg)](https://phpackages.com/packages/madhankumar-directory-manager)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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