Skip to content

Adding LSP: PHP Intelephense - #4504

Merged
rekram1-node merged 6 commits into
anomalyco:devfrom
dbpolito:php_intelephense
Nov 19, 2025
Merged

rekram1-node merged 6 commits into
anomalyco:devfrom
dbpolito:php_intelephense

Conversation

@dbpolito

Copy link
Copy Markdown
Contributor

Adding LSP: PHP Intelephense

Intelephense is a freemium LSP, which means you can also add a license to enable the some premium features, probably who buys it will know how to setup but in order to make it work with opencode we need some extra config, which you can see at https://intelephense.com/docs:

If your LSP client does not expose initializationOptions then a licence key can be provided by placing (only) the key in a text file at $HOME/intelephense/licence.txt on *nix or %USERPROFILE%/intelephense/licence.txt on Windows.

Wondering if we should mention that on the docs, or just leave for the user to find out.

Copilot AI review requested due to automatic review settings November 19, 2025 17:32
@dbpolito dbpolito mentioned this pull request Nov 19, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for the PHP Intelephense language server to OpenCode. Intelephense is a freemium LSP that provides PHP language features like autocomplete, diagnostics, and code intelligence.

Key changes:

  • Added PHP Intelephense LSP server configuration with auto-installation support
  • Updated documentation to include the new LSP server in the built-in servers table

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/opencode/src/lsp/server.ts Implements the PHPIntelephense LSP server with auto-installation of the intelephense npm package for PHP projects
packages/web/src/content/docs/lsp.mdx Adds PHP Intelephense entry to the built-in LSP servers table

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rekram1-node

Copy link
Copy Markdown
Collaborator

Yeah we should defo document

@dbpolito

Copy link
Copy Markdown
Contributor Author

Awesome, done 👍

@rekram1-node

Copy link
Copy Markdown
Collaborator

@dbpolito you can ignore the test failure, but what happens fi they dont have the license? Does it error or will it just not do anything

@rekram1-node

Copy link
Copy Markdown
Collaborator

awesome just wanted to validate that

@rekram1-node
rekram1-node merged commit e1089bc into anomalyco:dev Nov 19, 2025
2 of 3 checks passed
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants