{"id":23718393,"url":"https://github.com/pheditor/pheditor","last_synced_at":"2025-05-16T03:06:17.240Z","repository":{"id":38236202,"uuid":"54227874","full_name":"pheditor/pheditor","owner":"pheditor","description":"PHP file editor","archived":false,"fork":false,"pushed_at":"2025-04-20T07:32:27.000Z","size":288,"stargazers_count":170,"open_issues_count":12,"forks_count":84,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-04-20T08:37:39.584Z","etag":null,"topics":["code-editor","editor","file-editor","online-editor","php","syntax-highlighting","text-editor"],"latest_commit_sha":null,"homepage":"http://pheditor.ir","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pheditor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-03-18T19:54:36.000Z","updated_at":"2025-04-20T07:32:30.000Z","dependencies_parsed_at":"2025-04-20T08:41:02.609Z","dependency_job_id":null,"html_url":"https://github.com/pheditor/pheditor","commit_stats":{"total_commits":205,"total_committers":3,"mean_commits":68.33333333333333,"dds":"0.13170731707317074","last_synced_commit":"bc5756fd77ab18a56c2e823c5889d09ba5987f5c"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pheditor%2Fpheditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pheditor%2Fpheditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pheditor%2Fpheditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pheditor%2Fpheditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pheditor","download_url":"https://codeload.github.com/pheditor/pheditor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254459088,"owners_count":22074605,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-editor","editor","file-editor","online-editor","php","syntax-highlighting","text-editor"],"created_at":"2024-12-30T21:21:31.939Z","updated_at":"2025-05-16T03:06:12.232Z","avatar_url":"https://github.com/pheditor.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pheditor\n=======\n\nPheditor is a single-file editor and file manager written in PHP.\n\n![Pheditor - PHP file Editor](https://pheditor.ir/assets/image/screenrecord-desktop.gif \"Pheditor PHP file editor\")\n\n### Features\n1. Editor with syntax highlighting\n2. File Manager (create, rename and delete files and directories)\n3. Password protected area\n4. Keeping the history of edited files and changes\n5. Keyboard shortcuts\n6. Access levels for reading and writing and other permissions\n7. Terminal\n8. Dark mode\n9. Search in files\n\n---\n\n### Requirements\n\n1. Web server (Nginx, Apache, or etc)\n2. PHP 8.3 or above\n\n---\n\n### Install \u0026 Usage\n\nInstall using composer:\n`composer create-project pheditor/pheditor`\n\nor just upload `pheditor.php` to your web host (and/or rename it as you wish).\n\n---\n\n### Local assets\n\nBy default Pheditor uses CDN to load required libraries but also it is possible to load assets from local directory.\n\nFor using local assets follow these steps:\n\n1. Edit `pheditor.php` and change `LOCAL_ASSETS` definition to `true`.\n\n`define('LOCAL_ASSETS', true);`\n\n2. Run `npm i` to install required dependencies.\n\n---\n\n**NOTES**:\n1. The default password is `admin`. Please change the password after install or first login.\n2. 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.\n\n---\n\n**Optional settings:**\n\nThe settings would be editable in the main PHP file (pheditor.php by default).\nThe settings are as below:\n1. Define patterns for files and directories to view/edit (empty means all files \u0026 directories)\n2. Log file path\n3. Show/Hide hidden files\n4. Limit access to the page only for an IP address (empty means access for all)\n5. Show/Hide main pheditor file (pheditor.php) in files list to edit \n6. History files path\n7. Word wrap\n8. Changing main directory (`MAIN_DIR`)\n9. Enable/Disable Terminal\n10. Define allowed terminal commands\n11. Change editor theme (`EDITOR_THEME`) ([theme list](https://codemirror.net/demo/theme.html))\n12. New file and directory permissions (`DEFAULT_DIR_PERMISSION` and `DEFAULT_FILE_PERMISSION`)\n\n---\n\n**Using without password:**\n\nYou 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.\n\n---\n\n**Access Levels and Permissions:**\n\nThere are eight permissions for users that is defined in `PERMISSIONS` constant. You can remove any of them as you need.\n\nDefault value: `newfile,newdir,editfile,deletefile,deletedir,renamefile,renamedir,changepassword,uploadfile,terminal`\n\n---\n\n### Donation\nIf you found this project useful, please consider making a donation to keep this project alive.\nCryptocurrency | Address\n--- | ---\nBitcoin | `bc1qqjm32eupk7lw3kctlmflqh9spzalya9mqwppw9`\nEthereum | `0x3d7324f1718fF9f9F57b1d45c80dEdea59F0b412`\n\n---\n**Thanks to:**\n\n[Laurent](https://github.com/slolo2000), [fjavierc](https://github.com/fjavierc), [Jidbo](https://github.com/Jidbo)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpheditor%2Fpheditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpheditor%2Fpheditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpheditor%2Fpheditor/lists"}