# Emacs PHP Mode

> Emacs major mode for editing PHP code

**Wikidata**: [Q113848674](https://www.wikidata.org/wiki/Q113848674)  
**Source**: https://4ort.xyz/entity/emacs-php-mode

Here’s the structured knowledge entry for **Emacs PHP Mode**:

---

## Summary  
Emacs PHP Mode is a major mode for the GNU Emacs text editor designed specifically for editing PHP code. It provides syntax highlighting, indentation, and other features tailored to PHP development. The mode is free software, maintained by the Emacs community, and distributed as part of NonGNU ELPA.

## Key Facts  
- **Inception**: Created on May 17, 1999, by Turadg Aleahmad.  
- **Latest Stable Version**: 1.24.1 (released September 8, 2022).  
- **License**: Free software (exact license: Q27016754).  
- **Platform**: Runs on GNU Emacs, compatible with macOS, Windows, and BSD systems.  
- **Programming Language**: Written in Emacs Lisp.  
- **Maintainers**: Originally by Turadg Aleahmad; currently maintained by Kenta Usami.  
- **Distribution**: Available via NonGNU ELPA since August 29, 2021.  
- **Source Code**: Hosted on GitHub ([github.com/emacs-php/php-mode](https://github.com/emacs-php/php-mode)).  

## FAQs  
### Q: What features does Emacs PHP Mode provide?  
A: It offers syntax highlighting, automatic indentation, code navigation, and integration with PHP’s syntax rules, streamlining PHP development in Emacs.  

### Q: How do I install Emacs PHP Mode?  
A: It can be installed via NonGNU ELPA (`M-x package-install RET php-mode RET`) or manually from its GitHub repository.  

### Q: Is Emacs PHP Mode still actively maintained?  
A: Yes, as of 2022, it is maintained by Kenta Usami, with updates distributed through NonGNU ELPA.  

## Why It Matters  
Emacs PHP Mode is a critical tool for developers who use GNU Emacs for PHP programming. By providing specialized editing features, it bridges the gap between Emacs’ general-purpose text editing capabilities and the needs of PHP developers. Its longevity (since 1999) and integration into NonGNU ELPA highlight its reliability and community support. The mode exemplifies the free software ethos, allowing users to modify and distribute it freely, aligning with Emacs’ philosophy.  

## Notable For  
- **Longevity**: One of the earliest PHP-specific modes for Emacs, dating back to 1999.  
- **Integration**: Officially distributed via NonGNU ELPA, ensuring easy installation for Emacs users.  
- **Cross-Platform**: Works on major operating systems (Windows, macOS, BSD).  
- **Community-Driven**: Maintained by volunteers, with contributions from the Emacs-PHP development community.  

## Body  
### History  
- **1999**: Initial release by Turadg Aleahmad.  
- **2001**: First stable versions (1.0.x) hosted on SourceForge.  
- **2021**: Added to NonGNU ELPA (August 29).  

### Technical Details  
- **Dependencies**: Requires GNU Emacs and Emacs Lisp.  
- **Version Highlights**:  
  - **1.24.1** (2022): Latest stable release.  
  - **1.0.0** (2001): First public release.  

### Distribution  
- **Package Managers**: Available in Debian (`elpa-php-mode`), Ubuntu, Gentoo, and Nixpkgs.  
- **Source Repositories**:  
  - GitHub: Primary development hub.  
  - GNU Savannah: Mirror for NonGNU ELPA.  

## Schema Markup  
```json
{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "name": "Emacs PHP Mode",
  "description": "A major mode for GNU Emacs designed for editing PHP code.",
  "url": "https://github.com/emacs-php/php-mode",
  "sameAs": ["https://elpa.nongnu.org/nongnu/php-mode.html"],
  "applicationCategory": "SourceCodeEditor",
  "operatingSystem": ["Windows", "macOS", "BSD"],
  "programmingLanguage": "Emacs Lisp",
  "license": "https://spdx.org/licenses/GPL-3.0-or-later.html",
  "dateCreated": "1999-05-17",
  "maintainer": {
    "@type": "Person",
    "name": "Kenta Usami"
  }
}

## References

1. [Source](https://elpa.nongnu.org/nongnu/php-mode.html)
2. [Source](https://www.emacswiki.org/emacs/ZonuExe)
3. [Php-Mode version 1.24.1. 2022](https://lists.gnu.org/archive/html/gnu-emacs-sources/2022-09/msg00018.html)
4. [Release 1.24.0. 2021](https://github.com/emacs-php/php-mode/releases/tag/v1.24.0)
5. [Source](https://github.com/emacs-php/php-mode/releases/tag/v1.23.0)
6. [Source](https://sourceforge.net/projects/php-mode/files/php-mode/1.0.0/)
7. [Source](https://sourceforge.net/projects/php-mode/files/php-mode/1.0.1/)
8. [Source](https://sourceforge.net/projects/php-mode/files/php-mode/1.0.2/)
9. [Source](https://sourceforge.net/projects/php-mode/files/php-mode/1.0.5/)
10. [Source](https://sourceforge.net/projects/php-mode/files/php-mode/1.1/)
11. [Source](https://sourceforge.net/projects/php-mode/files/php-mode/1.2.0/)
12. [Source](https://sourceforge.net/projects/php-mode/files/php-mode/1.4.0/)
13. [Source](https://sourceforge.net/projects/php-mode/files/php-mode/1.5.0/)
14. [php-mode.el Version 1.12. 2013](https://lists.gnu.org/archive/html/gnu-emacs-sources/2013-09/msg00002.html)
15. [Source](https://github.com/emacs-php/php-mode/releases/tag/v1.13.1)
16. [Release 1.19.0. 2018](https://github.com/emacs-php/php-mode/releases/tag/v1.19.0)
17. [Release 1.19.1. 2018](https://github.com/emacs-php/php-mode/releases/tag/v1.19.1)
18. [Release 1.20.0. 2019](https://github.com/emacs-php/php-mode/releases/tag/v1.20.0)
19. [Release 1.21.0. 2019](https://github.com/emacs-php/php-mode/releases/tag/v1.21.0)
20. [Release 1.21.1. 2019](https://github.com/emacs-php/php-mode/releases/tag/v1.21.1)
21. [Release 1.21.2. 2019](https://github.com/emacs-php/php-mode/releases/tag/v1.21.2)
22. [Release 1.21.3. 2019](https://github.com/emacs-php/php-mode/releases/tag/v1.21.3)
23. [Release 1.21.4. 2019](https://github.com/emacs-php/php-mode/releases/tag/v1.21.4)
24. [Release 1.22.0. 2019](https://github.com/emacs-php/php-mode/releases/tag/v1.22.0)
25. [Release 1.22.1. 2019](https://github.com/emacs-php/php-mode/releases/tag/v1.22.1)
26. [Release 1.22.2. 2019](https://github.com/emacs-php/php-mode/releases/tag/v1.22.2)
27. [Php-Mode version 1.24.2. 2022](https://lists.gnu.org/archive/html/gnu-emacs-sources/2022-11/msg00032.html)
28. [Php-Mode version 1.24.3. 2023](https://lists.gnu.org/archive/html/gnu-emacs-sources/2023-03/msg00041.html)
29. [Release 1.25.0. 2023](https://github.com/emacs-php/php-mode/releases/tag/v1.25.0)
30. [Php-Mode version 1.25.0. 2023](https://lists.gnu.org/archive/html/gnu-emacs-sources/2023-07/msg00046.html)
31. [Release 1.25.1. 2023](https://github.com/emacs-php/php-mode/releases/tag/v1.25.1)
32. [Php-Mode version 1.25.1. 2023](https://lists.gnu.org/archive/html/gnu-emacs-sources/2023-11/msg00061.html)
33. [Release 1.26.1. 2024](https://github.com/emacs-php/php-mode/releases/tag/v1.26.1)
34. [[NonGNU ELPA] Php-Mode version 1.26.1. 2024](https://lists.gnu.org/archive/html/gnu-emacs-sources/2024-09/msg00030.html)
35. [Source](https://packages.debian.org/source/bullseye/php-elisp)
36. [Source](https://github.com/emacs-php/php-mode/blob/master/lisp/php.el)
37. [emacs-php-mode 1.24.2](https://guix.gnu.org/en/packages/emacs-php-mode-1.24.2/)