Documentation
¶
Overview ¶
Package phpantom manages the phpantom_lsp language server behind tinker's autocomplete, diagnostics and hover. It is a self-contained Rust binary that needs no PHP, so it runs on the host from BinDir instead of in the PHP images.
Index ¶
Constants ¶
const Version = "0.11.1"
Version pins the phpantom_lsp release lerd installs. Bump alongside a tested upgrade; the binary is re-fetched when the on-disk copy is missing.
Variables ¶
This section is empty.
Functions ¶
func BinPath ¶
func BinPath() string
BinPath is the managed location of the phpantom_lsp executable.
func Command ¶ added in v1.37.0
Command returns a phpantom_lsp process rooted at dir. XDG_CONFIG_HOME points at a lerd-owned folder because a .phpantom.toml is the only way to pick the token mode; a project's own .phpantom.toml still overrides it.
func EnsureBinary ¶
EnsureBinary downloads and extracts phpantom_lsp into BinDir when it is not already present. It is safe to call on every connection: once installed it returns immediately. The download honours ctx, so a caller whose request is cancelled (e.g. the browser tab closing mid-download) aborts the fetch.
Types ¶
This section is empty.