Skip to content

Installation

USAMI Kenta edited this page Oct 27, 2022 · 5 revisions

💾 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.

Get latest development version

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.

Debian's package

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.

Clone this wiki locally