To install this package, run in Emacs:
M-x package-install RET php-mode RET
PHP Mode is a major mode for editing PHP script. It's an extension of CC mode; thus it inherits all C mode's navigation functionality. But it colors according to the PHP syntax and indents according to the PSR-2 coding guidelines. It also includes a couple handy IDE-type features such as documentation search and a source and class browser. Please read the manual for setting items compatible with CC Mode. https://www.gnu.org/software/emacs/manual/html_mono/ccmode.html This mode is designed for PHP scripts consisting of a single <?php block. We recommend the introduction of Web Mode for HTML and Blade templates combined with PHP. http://web-mode.org/ Modern PHP Mode can be set on a project basis by .dir-locals.el. Please read php-project.el for details of directory local variables. If you are using a package manager, you do not need (require 'php-mode) in your ~/.emacs.d/init.el. Read the README for installation instructions. https://github.com/emacs-php/php-mode
php-mode-1.24.2.tar.lz | 2022-Nov-12 | 96.0 KiB |
php-mode-1.24.1.tar.lz | 2022-Sep-08 | 68.9 KiB |
php-mode-1.24.0.tar.lz | 2021-Aug-29 | 76.4 KiB |
All notable changes of the PHP Mode 1.19.1 release series are documented in this file using the Keep a CHANGELOG principles.
php-format
([#731])
php-format-project
and php-format-this-buffer-file
commandsphp-format-auto-mode
minor modephp-ide
([#709])
php-ide-phpactor
as simple IDE feature without LSP clientsphp-ide-mode
minor mode for binding IDE-like features'link
in PHPDoc ([#724])
goto-address-prog-mode
minor modephp-complete
php-complete-complete-function
to autocomplete function names ([#708])php-flymake
php-flymake
as a flymake backend compatible with Emacs 26 and above ([#718])php-mode-replace-flymake-diag-function
custom variable and default activated it ([#718])php-mode-debug-reinstall
command to help users who update Emacs themselves ([#721])php-doc-annotation-tag
inherits font-lock-doc-markup-face
if defined in Emacs 28 ([#711])php-mode-version
function include a Git tag and revision ([#713])
"1.23.4-56-xxxxxx"
for example.php-phpdoc-type-keywords
to php-phpdoc-type-names
to avoid confusion ([#717])php-flymake-php-init
append to flymake-allowed-file-name-masks
only in legacy Flymake ([#718])php-mode-version-number
contstant variable ([#712])
(php-mode-version :as-number t)
is provided for use cases comparing as versions, but generally SHOULD NOT be dependent on the PHP Mode version.php-mode-disable-c-mode-hook
customize variable ([#718])php-mode-disable-c-auto-align-backslashes
as it doesn't make sense and is always disabled... ...