PHPackages                             xphp-lang/language-server - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. xphp-lang/language-server

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

xphp-lang/language-server
=========================

Language Server Protocol implementation for xphp. Powers diagnostics, hover, go-to-definition and completion in VS Code (and any LSP-aware editor) by reusing the xphp parser AST + Registry directly.

v0.2.5(1mo ago)00MITPHPPHP ^8.4.0CI passing

Since Jun 1Pushed 1mo agoCompare

[ Source](https://github.com/xphp-lang/language-server)[ Packagist](https://packagist.org/packages/xphp-lang/language-server)[ Docs](https://github.com/xphp-lang/language-server)[ RSS](/packages/xphp-lang-language-server/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (8)Dependencies (12)Versions (14)Used By (0)

xphp Language Server
====================

[](#xphp-language-server)

Language Server Protocol \[partial\] implementation that powers editor intelligence for `xphp` files across any LSP-capable editor:

- diagnostics
- navigation
- refactoring
- completion
- code lenses

The server can be shipped as a self-contained PHAR that can be used by other tools, like IDE plugins.

The server reuses the parent `xphp` package's AST, generic-instantiation `Registry`, and `TypeHierarchy` directly -- no second parser, no duplicated language semantics.

Targets **xphp 0.2.x**, including the turbofish call-site syntax (`new Box::()`, `Foo::method::(...)`), variance markers, default type arguments, and composite (intersection / union) bounds.

For the public-facing feature inventory plus what's planned next, see [roadmap](docs/roadmap.md).

---

Install
-------

[](#install)

```
composer require xphp-lang/language-server
```

---

Build
-----

[](#build)

```
make build/phar # → var/xphp-lsp.phar
```

The PHAR is the distribution format for editor integrations bundle -- zero-config install for editors that can't reasonably depend on a Composer-managed working tree.

---

Overview
--------

[](#overview)

 ```
---
config:
  layout: tidy-tree
---
mindmap
  root((LSP))
    Navigate
      definition
      typeDefinition
      references
      implementation
      callHierarchy
      typeHierarchy
      documentSymbol
      workspaceSymbol
      documentHighlight
    Edit
      rename
      willRenameFiles
      codeAction
      bound-error fix-it
      codeLens
    Understand
      hover
      signatureHelp
      inlayHint
      foldingRange
      semanticTokens
    Validate
      parse
      bound
      duplicate-template
      undefined-bareword
      constructor-arg-mismatch
      argument-mismatch
      cross-file broadcast
    Find
      completion
      completionItem/resolve
    Performance
      AST cache
      stub cache
      tolerant-parse
      UTF-16 columns
      proximity FQN resolution
      lint mode
```

      Loading See also
--------

[](#see-also)

- [detailed list of features](docs/features/index.md)
- [roadmap](./docs/roadmap.md)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance92

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

10

Last Release

40d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4133b1f33970c9925c7e2219f6d3e76ffa12eae30a4eacdb1b6fbd04e6be99f0?d=identicon)[math3usmartins](/maintainers/math3usmartins)

---

Top Contributors

[![math3usmartins](https://avatars.githubusercontent.com/u/585688?v=4)](https://github.com/math3usmartins "math3usmartins (106 commits)")

---

Tags

phpgenericstype-systemmonomorphizationtranspilerXPHP

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xphp-lang-language-server/health.svg)

```
[![Health](https://phpackages.com/badges/xphp-lang-language-server/health.svg)](https://phpackages.com/packages/xphp-lang-language-server)
```

###  Alternatives

[phpactor/phpactor

PHP refactoring and intellisense tool for text editors

1.9k17.1k1](/packages/phpactor-phpactor)[deptrac/deptrac

Deptrac is a static code analysis tool that helps to enforce rules for dependencies between software layers.

3.0k8.8M207](/packages/deptrac-deptrac)[ondrejmirtes/better-reflection

Better Reflection - an improved code reflection API

137.4M5](/packages/ondrejmirtes-better-reflection)[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21523.4k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
