{"id":13862859,"url":"https://github.com/emacs-php/php-mode","last_synced_at":"2025-12-17T03:41:37.145Z","repository":{"id":388776,"uuid":"2104138","full_name":"emacs-php/php-mode","owner":"emacs-php","description":"A powerful and flexible Emacs major mode for editing PHP scripts","archived":false,"fork":false,"pushed_at":"2024-10-24T12:41:53.000Z","size":1885,"stargazers_count":583,"open_issues_count":63,"forks_count":118,"subscribers_count":48,"default_branch":"master","last_synced_at":"2024-10-25T13:34:26.465Z","etag":null,"topics":["emacs","major-mode","php"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emacs-php.png","metadata":{"files":{"readme":"README.ja.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-07-25T23:41:33.000Z","updated_at":"2024-10-24T12:41:54.000Z","dependencies_parsed_at":"2024-01-28T10:22:10.765Z","dependency_job_id":"bdc0ca79-5135-406b-95d5-7fcb93f8106f","html_url":"https://github.com/emacs-php/php-mode","commit_stats":{"total_commits":1204,"total_committers":75,"mean_commits":"16.053333333333335","dds":0.6428571428571428,"last_synced_commit":"8e874a8fd8fbcf05fa7e6ddce2208514e90e7e81"},"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emacs-php%2Fphp-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emacs-php%2Fphp-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emacs-php%2Fphp-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emacs-php%2Fphp-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emacs-php","download_url":"https://codeload.github.com/emacs-php/php-mode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225980898,"owners_count":17554919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emacs","major-mode","php"],"created_at":"2024-08-05T06:01:54.323Z","updated_at":"2025-12-17T03:41:32.121Z","avatar_url":"https://github.com/emacs-php.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eEmacs PHP Mode\u003c/h1\u003e\n\n[![Emacs: 30.0](https://img.shields.io/badge/Emacs-30.0-blue.svg)](https://www.gnu.org/software/emacs/)\n[![lang: PHP 8.4](https://img.shields.io/badge/lang-PHP%208.4-brightgreen.svg)](https://www.php.net/releases/8.4/)\n[![Build Status](https://github.com/emacs-php/php-mode/workflows/CI/badge.svg)](https://github.com/emacs-php/php-mode/actions)\n[![GPL v3](https://img.shields.io/badge/license-GPL_v3-green.svg)][gpl-v3]\u003cbr\u003e\n[![NonGNU ELPA][nongnu-elpa-badge]][nongnu-elpa]\n[![melpa badge][melpa-badge]][melpa-link]\n\nA powerful and flexible Emacs major mode for editing PHP scripts\n\n[English](README.md) \u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp; 日本語\n\n\u003c/div\u003e\n\n[GitHubプロジェクト][php-mode]にissueを作成してバグ報告や機能リクエストを送ってください。\n\n\u003e [!NOTE]\n\u003e [最新版][releases]のPHP ModeはEmacs 30をサポートしています。\u003cbr /\u003eアップグレードに伴うトラブルは[Discussions][discussions-emacs30]に気軽に書き込んでください。\n\n\u003e [!WARNING]\n\u003e Emacsをアップグレードした直後に初めてPHPファイルを開いたときに、CC Mode関連のエラーが発生する可能性があります。これは以前のバージョンのEmacsでバイトコンパイルされたPHP Modeがディスクにキャッシュされているために起こるので、PHP Modeの再インストールによって解決します。\n\u003e\n\u003e **`M-x php-mode-debug-reinstall`** または **`M-x package-reinstall php-mode`** コマンドをお試しください。\n\n[releases]: https://github.com/emacs-php/php-mode/releases\n[discussions-emacs30]: https://github.com/emacs-php/php-mode/discussions/798\n\n## インストール\n\n**PHP ModeはEmacs 27.1以降で動作します**。対応バージョンの詳細は[Supported Version]をお読みください。Emacs 28以降では単に以下のコマンドを実行するだけでインストールできます。\n\n```\nM-x package-install php-mode\n```\n\n[`package-archives`にMELPAを追加][melpa-getting-started]することで、Web上の多くのパッケージでEmacsを強化できます。\n\nパッケージマネージャへの依存なしでインストールしたい場合は、Lispファイルを直接配置する伝統的な方法も可能です。詳しくは[Manual installation][wiki-manual-installation]をお読みください。\n\n## 設定\n\n### 個人設定\n\n.emacsファイル(`~/.emacs.d/init.el`)にPHPモードの設定を記述できます。\n\n```lisp\n(defun my-php-mode-init ()\n  (subword-mode 1)\n  (setq-local show-trailing-whitespace t)\n  (setq-local ac-disable-faces '(font-lock-comment-face font-lock-string-face))\n  (add-hook 'hack-local-variables-hook 'php-ide-turn-on nil t))\n\n(with-eval-after-load 'php-mode\n  (add-hook 'php-mode-hook #'my-php-mode-init)\n  (custom-set-variables\n   '(php-mode-coding-style 'psr2)\n   '(php-mode-template-compatibility nil)\n   '(php-imenu-generic-expression 'php-imenu-generic-expression-simple))\n\n  ;; If you find phpcs to be bothersome, you can disable it.\n  (when (require 'flycheck nil)\n    (add-to-list 'flycheck-disabled-checkers 'php-phpmd)\n    (add-to-list 'flycheck-disabled-checkers 'php-phpcs)))\n```\n\n### プロジェクトローカル設定\n\nプロジェクトのトップディレクトリに`.dir-locals.el`または`.dir-locals-2.el`を記述すると、プロジェクト単位の設定を追加することができます。このファイルはユーザー自身のEmacsにインストールされたパッケージに依存するため、バージョン管理の対象に含めないことを推奨します。\n\n```lisp\n((nil\n  (php-project-root . git)\n  (php-project-coding-style . psr2)))\n```\n\n## 不具合を報告する\n\nバグ報告の際には `M-x php-mode-debug` の出力を含めてください。この情報は問題の再現に役立ちます。\n\n貢献するには\n-----------------\n\n[CONTRIBUTING.md](CONTRIBUTING.md#japanese)をご覧ください。\n\n## 著作権\n\nPHP Modeは[GNU General Public License Version 3][gpl-v3] (GPLv3) でライセンスされています。\n\nこのプロジェクトは1999年に[Turadg Aleahmad][@turadg]が書いた`php-mode.el`に起源を持ちます。2013年に[Daniel Hackney][@haxney]がEmacs組み込みのCC Modeをもとに書き直し始めました。PHPモードの改善に協力した貢献者のリストは[Authors]と[Contributors]に掲載されています。\n\nこのプロジェクトは2017年まで[Eric James Michael Ritz][@ejmr]によりメンテナンスされていました。現在は[Friends of Emacs-PHP Development][@emacs-php]コミュニティが引き継いで開発しています。\n\n\u003e ```\n\u003e Copyright (C) 2023  Friends of Emacs-PHP development\n\u003e Copyright (C) 1999, 2000, 2001, 2003, 2004 Turadg Aleahmad\n\u003e               2008 Aaron S. Hawley\n\u003e               2011, 2012, 2013, 2014, 2015, 2016, 2017 Eric James Michael Ritz\n\u003e ```\n\u003e\n\u003e This program is free software; you can redistribute it and/or modify\n\u003e it under the terms of the GNU General Public License as published by\n\u003e the Free Software Foundation, either version 3 of the License, or\n\u003e (at your option) any later version.\n\u003e\n\u003e This program is distributed in the hope that it will be useful,\n\u003e but WITHOUT ANY WARRANTY; without even the implied warranty of\n\u003e MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n\u003e GNU General Public License for more details.\n\u003e\n\u003e You should have received a copy of the GNU General Public License\n\u003e along with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n\n[@ejmr]: https://github.com/ejmr\n[@emacs-php]: https://github.com/emacs-php\n[@haxney]: https://github.com/haxney\n[@turadg]: https://github.com/turadg\n[Authors]: https://github.com/emacs-php/php-mode/wiki/Authors\n[Contributors]: https://github.com/emacs-php/php-mode/graphs/contributors\n[Supported Version]: https://github.com/emacs-php/php-mode/wiki/Supported-Version\n[gpl-v3]: https://www.gnu.org/licenses/gpl-3.0\n[nongnu-elpa-badge]: https://elpa.nongnu.org/nongnu/php-mode.svg\n[nongnu-elpa]: https://elpa.nongnu.org/nongnu/php-mode.html\n[melpa-badge]: http://melpa.org/packages/php-mode-badge.svg\n[melpa-getting-started]: https://melpa.org/#/getting-started\n[melpa-link]: http://melpa.org/#/php-mode\n[php-mode]: https://github.com/emacs-php/php-mode\n[wiki]: https://github.com/emacs-php/php-mode/wiki\n[wiki-manual-installation]: https://github.com/emacs-php/php-mode/wiki/Manual-installation-ja\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femacs-php%2Fphp-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femacs-php%2Fphp-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femacs-php%2Fphp-mode/lists"}