PHPackages                             flobee/filemanager - 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. flobee/filemanager

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

flobee/filemanager
==================

PHP Filemanager for developers for managing files and folders who can't access their site over SSH or FTP or who need `www-data` permission (\*nix)

1.0.0(7y ago)02.0k1MITPHPPHP 7.\*

Since Oct 21Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

PHP File Manager
================

[](#php-file-manager)

A good solution for managing files and folders for developers who can't access their site over SSH or FTP or who need "www-data" permission (\*nix).

[![PHP File Manager](https://camo.githubusercontent.com/41ff1890e3b28f84672b440830f7cd1a0ee071afeffd5de8dee5fbfc2abc7b5e/68747470733a2f2f7261772e6769746875622e636f6d2f666c6f6265652f66696c656d616e616765722f6d61737465722f6173736574732f706870666d2e706e67)](https://camo.githubusercontent.com/41ff1890e3b28f84672b440830f7cd1a0ee071afeffd5de8dee5fbfc2abc7b5e/68747470733a2f2f7261772e6769746875622e636f6d2f666c6f6265652f66696c656d616e616765722f6d61737465722f6173736574732f706870666d2e706e67)

Danger!
-------

[](#danger)

**WARNING! Do not use this script as a regular file manager in public area. After all actions you must delete this script from the server.**

And: Skip error reporting! This tools does a good job but take care and don't look behind the scene :) Test it first in a save enviroment (eg.: `define('FM_ROOT_PATH', '/tmp'); // playground first!`

Requirements
------------

[](#requirements)

- PHP 5.2 / PHP 7++
- [Zip extension](http://php.net/manual/en/book.zip.php) for zip and unzip actions.
- Fileinfo, iconv and mbstring extensions are strongly recommended.

How to use
----------

[](#how-to-use)

Download ZIP with the latest version from the master branch.

Copy **filemanager.php** to your website folder and open it in a web browser (e.g. [http://yoursite/any\_path/filemanager.php](http://yoursite/any_path/filemanager.php)).

Security
--------

[](#security)

Default username/password: **fm\_admin**/**fm\_admin**

**Warning! Please set your own username and password in `$auth_users` before use.**

To enable or disable authentication set `$use_auth` to `true` or `false`.

*For better security enable HTTP Authentication in your web server.*

Embedding
---------

[](#embedding)

You can include file manager in another script. Just define `FM_EMBED` and other necessary constants.

The authentication does not work in emedded mode and it is expacted you use your own authentication/ authorisation mechanism!

Example:

```
class FileManagerController
{
    public function runAction()
    {
        define('FM_EMBED', true);
         // must be set if URL to manager is not equal to PHP_SELF
        define('FM_SELF_URL', 'https://host/path/index.php?controller=FileManager&action=run';

        // if document root location is different to filesystem
        define('FM_ROOT_PATH', '/tmp'); // playground first!

        require 'path/to/filemanager.php';
    }
}
```

Supported constants:

- `FM_ROOT_PATH` - default is `$_SERVER['DOCUMENT_ROOT']`
- `FM_ROOT_URL` - default is `'http(s)://site.domain/'`
- `FM_SELF_URL` - default is `'http(s)://site.domain/' . $_SERVER['PHP_SELF']`
- `_FM_SELF_URL` - internal usage (to improve embedded usage)
- `FM_ICONV_INPUT_ENC` - default is `'CP1251'`
- `FM_USE_HIGHLIGHTJS` - default is `true`
- `FM_HIGHLIGHTJS_STYLE` - default is `'vs'`
- `FM_DATETIME_FORMAT` - default is `'d.m.y H:i'`
- `FM_SESSION_ID` - Session name and session key (default 'filemanager') to prevent conflicts

Public parameters/ actions in use (when using embedded you may need this info):

- `p` - filesystem path to use
- `new` - Create a new directory
- `copy` - Copy a file or directory src
- `move` - Flag to move and not to copy a file or directory
- `finish` - Flag to enable file/directory copy/movements
- `ren` - Rename selected file or directory
- `to` - Rename target
- `dl` - Download selected file
- `del` - delete a file/ directory
- `group` - Mass deletion of selected items
- `delete`
- `group` - Pack selected items
- `zip`
- `unzip` - Unpack selected item
- `tofolder` - Upack to folder of zip's filename
- `chmod` - Change mode (permissions) of selected item
- `view` - Show selected item (list zip contents, shows images/media or mime:text files)
- `logout` - logout (if enabled)
- `img` - Show a selected image
- `upl` - Flag for uploads
- `upload` - Upload \_FILES
- `fm_usr` - Login user (if auth enabled)
- `fm_pwd` - Login pass (if auth enabled)

Alternatives
------------

[](#alternatives)

- [PHP File Manager](https://github.com/alexantr/filemanager) origin
- [Tiny PHP File Manager](https://github.com/prasathmani/tinyfilemanager) with search and file editor
- [simple php filemanager](https://github.com/jcampbell1/simple-file-manager)

Bug tracker
-----------

[](#bug-tracker)

If you have any issues with file manager, you may report them on [Issue tracker](https://github.com/alexantr/filemanager/issues).

License
-------

[](#license)

This software is released under the MIT license.

Icons by [Yusuke Kamiyamane](http://p.yusukekamiyamane.com/).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 95.2% 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

2762d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/72171077fd1625e43e5bb8e96388ce24f60569969626958103bbad0c85c2bb55?d=identicon)[flobee](/maintainers/flobee)

---

Top Contributors

[![alexantr](https://avatars.githubusercontent.com/u/4941848?v=4)](https://github.com/alexantr "alexantr (120 commits)")[![flobee](https://avatars.githubusercontent.com/u/1349520?v=4)](https://github.com/flobee "flobee (2 commits)")[![nikaro](https://avatars.githubusercontent.com/u/3918653?v=4)](https://github.com/nikaro "nikaro (2 commits)")[![rehmatworks](https://avatars.githubusercontent.com/u/23554187?v=4)](https://github.com/rehmatworks "rehmatworks (1 commits)")[![RobLui](https://avatars.githubusercontent.com/u/10846766?v=4)](https://github.com/RobLui "RobLui (1 commits)")

---

Tags

phpuploaddownloadfile managerwww-data

### Embed Badge

![Health badge](/badges/flobee-filemanager/health.svg)

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

###  Alternatives

[blueimp/jquery-file-upload

File Upload widget for jQuery.

141.5M18](/packages/blueimp-jquery-file-upload)[jasekz/laradrop

File manager using Dropzone.js for Laravel 5 | 6 | 7 | 8

7310.3k1](/packages/jasekz-laradrop)

PHPackages © 2026

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