Manual Installation¶
Most editors install PHPantom automatically (see Editor Setup). Use these methods when your editor doesn't manage the binary for you, or when you want a specific version.
Latest Release¶
cargo-binstall downloads pre-built binaries instead of compiling from source, so installation takes seconds instead of minutes.
Download the latest binary for your platform from GitHub Releases. Available for:
x86_64-unknown-linux-gnuaarch64-unknown-linux-gnux86_64-apple-darwinaarch64-apple-darwinx86_64-pc-windows-msvc
The Linux binaries are statically linked (musl), so they have no
minimum glibc requirement and run on any Linux distribution, including
old-glibc systems (RHEL/CentOS 8, Debian 11) and musl-based ones
(Alpine). The -unknown-linux-gnu name is retained for compatibility
with existing installers.
Latest Main (Unreleased)¶
Install the latest main branch to get fixes and features that haven't
been released yet. Useful for verifying bug fixes or testing new features.
Build from Source¶
See Building from Source for full instructions. Quick version:
git clone https://github.com/PHPantom-dev/phpantom_lsp
cd phpantom_lsp
cargo build --release
# Binary is at target/release/phpantom_lsp
Once installed, see Editor Setup to configure your editor.