Download the PHP package pheditor/pheditor without Composer

On this page you can find all versions of the php package pheditor/pheditor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pheditor

Pheditor

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

Pheditor - PHP file Editor

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

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

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

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);

  1. 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 & 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)
  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


Donation

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


All versions of pheditor with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pheditor/pheditor contains the following files

Loading the files please wait ....