php: Add Phpactor support (#14604)

This PR extends the PHP extension with
[Phpactor](https://github.com/phpactor/phpactor) support.

Phpactor seems to provide a better feature set out-of-the-box for free,
so it has been made the default PHP language server.

Thank you to @xtrasmal for informing us of Phpactor's existence!

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-07-16 18:39:13 -04:00 committed by GitHub
parent f9b0792aa0
commit 696591ca55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 216 additions and 65 deletions

View file

@ -1,3 +1,21 @@
# PHP
PHP support is available through the [PHP extension](https://github.com/zed-industries/zed/tree/main/extensions/php).
## Choosing a language server
The PHP extension offers both `phpactor` and `intelephense` language server support.
`phpactor` is enabled by default.
To switch to `intelephense`, add the following to your `settings.json`:
```json
{
"languages": {
"PHP": {
"language_servers": ["intelephense", "!phpactor", "..."]
}
}
}
```