microsoft / microsoft/multilspy

Add Phpactor as alternative PHP language server

Open
#141 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
610
Forks
111
PR merge metrics
No merged PRs in 30d

Description

Context

PR #140 adds PHP support via Intelephense (npm-based). Intelephense works well but is proprietary (free tier covers core LSP features, premium features like rename/code actions require a $35 license).

Phpactor is a fully open-source (MIT) alternative that supports all LSP features multilspy needs:

  • textDocument/definition
  • textDocument/references (cross-file)
  • textDocument/completion
  • textDocument/hover
  • textDocument/documentSymbol
  • Plus: rename, code actions, go-to-implementation — all free

Trade-offs vs Intelephense

Intelephense Phpactor
License Proprietary (free tier) MIT
Install npm (Node.js) PHAR download or composer (PHP 8.1+)
Rename/code actions Paid Free
Cross-file refs Free Free
Runtime dependency Node.js PHP 8.1+

Implementation notes

  • Could be added as or selected via config
  • PHAR binary can be downloaded from GitHub releases
  • Launches with (stdio by default)
  • Requires PHP 8.1+ on the host

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review PR #140's Intelephense integration first, then trace the configuration path and language-server launch entry point in multilspy. Add Phpactor as a selectable PHP server using its stdio startup and PHP 8.1+ requirement; done should include support for the listed LSP operations and the documented installation options.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, python
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.