PHPantom 0.6.0 Introduces Fast, Low-Memory PHP Language Server Built in Rust
PHPantom 0.6.0 introduces a PHP language server built in Rust, focusing on reducing startup time and memory usage while maintaining advanced static analysis capabilities.
In a recent update, Paul Dragoonis highlighted the release’s performance characteristics, noting startup times under one second and significantly lower memory usage compared to existing tools. The project positions itself as an alternative to traditional language servers that require extended indexing and higher resource consumption.
The language server emphasises deep type intelligence, including support for generics via @template, mixins, conditional return types, and PHPStan diagnostics. It also provides array and object shape inference, closure parameter inference, and context-aware PHPDoc completion.
Framework-specific capabilities include support for Laravel applications, where relationships, scopes, and builder chains are resolved without additional tooling. The system also recognises Composer-based projects, enabling PSR-4 class discovery, autoload-aware symbol resolution, and integration with standard PHP project structures.
Support extends to Drupal environments, where PHPantom detects project structure through composer.json and indexes Drupal-specific file types such as .module, .install, and .theme, ensuring both core and contributed code are included in analysis.
Despite its performance focus, some features remain under development, including workspace symbol support and parts of diagnostic coverage. The project documentation indicates active development, with core functionality already usable in day-to-day workflows.
Further technical details, benchmarks, and installation instructions are available on the project repository.
