-
Notifications
You must be signed in to change notification settings - Fork 119
Installation
PHP Mode is available from NonGNU ELPA. If you are using Emacs28, just run the following command.
M-x package-install RET php-mode RET
RET
means press the key marked ↵ Enter or return on your keyboard.
Versions published in NonGNU ELPA are marked stable, but are rarely released. Don't hesitate to use the latest PHP Mode to get the best support.
If you want to get the latest development version of PHP Mode, please add the MELPA repository.
MELPA is also useful for finding useful packages for development outside of PHP Mode.
If you don't want to depend on a package manager, you can install the Lisp files directly in the traditional way. See Manual-installation for our recommended install method.
Notice This method is suitable for temporary installations where you and your colleagues are not Emacs or PHP power users.
If you don't want to use Emacs' packaging system, you can also install PHP Mode system-wide with apt-get install elpa-php-mode
.
You can get it with apt-get on Ubuntu as well as Debian. Note that the version provided by Ubuntu always lags behind Debian. It's probably incompatible with newer versions of Emacs and PHP, and can cause errors while editing.