Pheditor is a single-file editor and file manager written in PHP.
Install using composer:
composer create-project pheditor/pheditor
or just upload pheditor.php to your web host (and/or rename it as you wish).
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:
pheditor.php and change LOCAL_ASSETS definition to true.define('LOCAL_ASSETS', true);
npm i to install required dependencies.NOTES:
admin. Please change the password after install or first login.Optional settings:
The settings would be editable in the main PHP file (pheditor.php by default). The settings are as below:
MAIN_DIR)EDITOR_THEME) (theme list)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
If you found this project useful, please consider making a donation to keep this project alive.
| Cryptocurrency | Address |
|---|---|
| Bitcoin | bc1qqjm32eupk7lw3kctlmflqh9spzalya9mqwppw9 |
| Ethereum | 0x3d7324f1718fF9f9F57b1d45c80dEdea59F0b412 |
Thanks to:
Laurent, fjavierc, Jidbo