PHPackages                             pheditor/pheditor - 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. pheditor/pheditor

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

pheditor/pheditor
=================

A lightweight PHP-based file editor and manager

2.0.3(2mo ago)18128083[11 issues](https://github.com/pheditor/pheditor/issues)MITPHPPHP ^8.3CI passing

Since Apr 25Pushed 2mo ago14 watchersCompare

[ Source](https://github.com/pheditor/pheditor)[ Packagist](https://packagist.org/packages/pheditor/pheditor)[ Docs](https://github.com/pheditor/pheditor)[ Fund](https://www.buymeacoffee.com/hamidsamak)[ RSS](/packages/pheditor-pheditor/feed)WikiDiscussions main Synced 6d ago

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

Pheditor
========

[](#pheditor)

Pheditor is a single-file editor and file manager written in PHP.

[![Pheditor - PHP file Editor](https://camo.githubusercontent.com/f71b8afc265b4b2b1787247669e0687312e71fb4a794086f7e2e7ec6a200bc9f/68747470733a2f2f7068656469746f722e69722f6173736574732f696d6167652f73637265656e7265636f72642d6465736b746f702e676966 "Pheditor PHP file editor")](https://camo.githubusercontent.com/f71b8afc265b4b2b1787247669e0687312e71fb4a794086f7e2e7ec6a200bc9f/68747470733a2f2f7068656469746f722e69722f6173736574732f696d6167652f73637265656e7265636f72642d6465736b746f702e676966)

### Features

[](#features)

1. Editor with syntax highlighting
2. File Manager (create, rename and delete files and directories)
3. Password protected area
4. Keeping the history of edited files and changes
5. Keyboard shortcuts
6. Access levels for reading and writing and other permissions
7. Terminal
8. Dark mode
9. Search in files

---

### Requirements

[](#requirements)

1. Web server (Nginx, Apache, or etc)
2. PHP 8.3 or above

---

### Install &amp; Usage

[](#install--usage)

Install using composer: `composer create-project pheditor/pheditor`

or just upload `pheditor.php` to your web host (and/or rename it as you wish).

---

### Local assets

[](#local-assets)

By default Pheditor uses CDN to load required libraries but also it is possible to load assets from local directory.

For using local assets follow these steps:

1. Edit `pheditor.php` and change `LOCAL_ASSETS` definition to `true`.

`define('LOCAL_ASSETS', true);`

2. Run `npm i` to install required dependencies.

---

**NOTES**:

1. The default password is `admin`. Please change the password after install or first login.
2. As the script gives permission to edit files, it is recommended to keep the address secret or protected depending on the web-server you are using.

---

**Optional settings:**

The settings would be editable in the main PHP file (pheditor.php by default). The settings are as below:

1. Define patterns for files and directories to view/edit (empty means all files &amp; directories)
2. Log file path
3. Show/Hide hidden files
4. Limit access to the page only for an IP address (empty means access for all)
5. Show/Hide main pheditor file (pheditor.php) in files list to edit
6. History files path
7. Word wrap
8. Changing main directory (`MAIN_DIR`)
9. Enable/Disable Terminal
10. Define allowed terminal commands
11. Change editor theme (`EDITOR_THEME`) ([theme list](https://codemirror.net/demo/theme.html))
12. New file and directory permissions (`DEFAULT_DIR_PERMISSION` and `DEFAULT_FILE_PERMISSION`)

---

**Using without password:**

You can empty the `PASSWORD` constant in the source code to access the script without the password. But it is highly recommended to use it and change the default password after installation.

---

**Access Levels and Permissions:**

There are eight permissions for users that is defined in `PERMISSIONS` constant. You can remove any of them as you need.

Default value: `newfile,newdir,editfile,deletefile,deletedir,renamefile,renamedir,changepassword,uploadfile,terminal,movefile`

---

**Thanks to:**

[Laurent](https://github.com/slolo2000), [fjavierc](https://github.com/fjavierc), [Jidbo](https://github.com/Jidbo)

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance82

Actively maintained with recent releases

Popularity32

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 98.7% 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 ~830 days

Total

4

Last Release

87d ago

PHP version history (2 changes)2.0.0PHP &gt;=5.4.0

2.0.3PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/604a034b6f62e174fd2b2b78bdf77445a27723d21fe909022cb2596b3108f189?d=identicon)[hamidsamak](/maintainers/hamidsamak)

---

Top Contributors

[![hamidsamak](https://avatars.githubusercontent.com/u/9208642?v=4)](https://github.com/hamidsamak "hamidsamak (223 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![fididev](https://avatars.githubusercontent.com/u/33832968?v=4)](https://github.com/fididev "fididev (1 commits)")

---

Tags

code-editoreditorfile-editorfile-manageronline-editorphpsyntax-highlightingtext-editorphpfile managerfile editorpheditor

### Embed Badge

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

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

###  Alternatives

[jasekz/laradrop

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

7310.3k1](/packages/jasekz-laradrop)[blueimp/jquery-file-upload

File Upload widget for jQuery.

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

PHPackages © 2026

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