PHPantom 0.6.0 Introduces Fast, Low-Memory PHP Language Server Built in Rust

Sub-second startup and deep type intelligence without traditional indexing overhead
PHPantom 0.6.0 Introduces High-Performance 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.

Disclosure: This content is produced with the assistance of AI.

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please reach out to us at #thedroptimes channel on Drupal Slack and we will try to address the issue as best we can.

Upcoming Events

Latest Opportunities