36 lines · 1.3 KB · Markdown
RawDownload

PHP

PHP support is available through the PHP extension.

Choosing a language server

The PHP extension offers both phpactor and intelephense language server support.

phpactor is enabled by default.

Intelephense

Intelephense is a proprietary language server for PHP operating under a freemium model. Certain features require purchase of a premium license. To use these features you must place your license.txt file at ~/intelephense/licence.txt inside your home directory.

To switch to intelephense, add the following to your settings.json:

{
  "languages": {
    "PHP": {
      "language_servers": ["intelephense", "!phpactor", "..."]
    }
  }
}

PHPDoc

Zed supports syntax highlighting for PHPDoc comments.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t