php-mode
- Description
- Major mode for editing PHP code
- Latest
- php-mode-1.26.1.0.20241024.124149.tar (.sig), 2024-Oct-24, 720 KiB
- Maintainer
- USAMI Kenta <tadsan@zonu.me>
- Website
- https://github.com/emacs-php/php-mode
- Browse ELPA's repository
- CGit or Gitweb
- Badge
To install this package from Emacs, use package-install
or list-packages
.
Full description
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
Old versions
php-mode-1.26.1.0.20240912.223846.tar.lz | 2024-Sep-13 | 95.5 KiB |
php-mode-1.25.1.0.20240911.185503.tar.lz | 2024-Sep-11 | 95.5 KiB |
php-mode-1.25.1.0.20240327.1356.tar.lz | 2024-Mar-31 | 95.0 KiB |
php-mode-1.25.1.0.20231217.112538.tar.lz | 2023-Dec-17 | 94.9 KiB |
php-mode-1.25.0.0.20231119.192652.tar.lz | 2023-Nov-19 | 94.5 KiB |
php-mode-1.25.0.0.20230929.12316.tar.lz | 2023-Sep-29 | 101 KiB |
php-mode-1.24.3.0.20230616.191943.tar.lz | 2023-Jun-16 | 101 KiB |
php-mode-1.24.2.0.20230308.130407.tar.lz | 2023-Mar-08 | 98.4 KiB |
php-mode-1.24.1.0.20221107.161534.tar.lz | 2022-Nov-07 | 95.6 KiB |
php-mode-1.24.0.0.20220709.174847.tar.lz | 2022-Jul-09 | 68.9 KiB |
News
Changes for PHP Mode by Version
All notable changes of the PHP Mode 1.19.1 release series are documented in this file using the Keep a CHANGELOG principles.
[1.26.1] - 2024-09-13
Added
- Add
php-base-mode
which is the base of php related modes ([#772])php-base-mode
is designed as a common parent mode forphp-mode
~~andphp-ts-mode
~~.
Changed
- Make
php-mode
inherit fromphp-base-mode
instead ofc-mode
([#772]) - Modify indentation of [PEAR Coding Standards] ([#774], [#777])
- No longer overindent it by default, since we don't see any mention in the coding style that it should hang
.
. (refs [#227] and [#229]) - If you have any feedback on PEAR style, please let us know in the discussion #776.
- No longer overindent it by default, since we don't see any mention in the coding style that it should hang
- Remove
$
from face names for interoperability with treesit ([#780], [emacs-php/php-ts-mode#68])php-$this
→php-this
php-$this-sigil
→php-this-sigil
- Add
php-function-call-standard
face inheritfont-lock-function-call-face
on Emacs 29.1 and above ([#782], thanks [@bricka]!) - Add
-tranditional
suffix to thephp-*-call
faces.php-function-call
→php-function-call-traditional
php-method-call
→php-method-call-traditional
php-static-method-call
→php-static-method-call-traditional
- Add variables for the
php-function-call
,php-method-call
, andphp-static-method-call
faces, defaulting to the-traditional
face. - Changes how php-syntax-propertize-rules are applied for the first time. ([#785] and [#786])
- This change is expected to make heredoc and attribute coloring more stable and reduce flicker.
Removed
- Remove
php-mode-disable-c-mode-hook
custom variable andphp-mode-neutralize-cc-mode-effect
function ([#775])php-mode
no longer inheritsc-mode
, so this variable won't work.
[1.26.0] - 2024-09-13
[!NOTE] This version was cancelled due to a release error.
[1.25.1] - 2023-11-24
Added
- Add
php-topsy-beginning-of-defun-with-class
to display classname with function signature. ([#766]) - Add missing
__DIR__
tophp-magical-constants
([#756], thanks [@piotrkwiecinski])
Changed
- Make developer build task in Makefile now depends on Eask. ([#762], thanks [@jcs090218])
- This change does not affect package installation users
- Read [CONTRIBUTING.md] if you prefer to build it yourself from zip or tar ball
Fixed
- Fixed build failure in Emacs on master branch ([#764], [#765], [#767], thanks [@takeokunn])
Removed
- Removed Phan-specific features from
php-project
([#754]) - Removed Cask and Keg metadata files for building ([#770])
... ...