Overview of PHPantom Language Server
mainPHPantom is a fast, lightweight PHP language server written in Rust. It is designed to be responsive and memory-efficient, avoiding long indexing phases or heavy disk caching. It is suitable for large codebases, capable of becoming ready in seconds with minimal RAM usage.
Key Capabilities:
- Deep Type Intelligence: Supports generics, conditional return types, closure parameter inference, array shapes, and PHPStan types.
- Laravel Support: Provides intelligence for Eloquent relationships, scopes, accessors, casts, Builder chains, macros, and Blade templates without requiring
ide-helperor direct database access. - Tool Integration: Integrates with PHPStan, PHPCS, and Mago to surface diagnostics from these tools directly in your editor on save.
- Refactoring: Supports renaming, extracting methods/functions/variables/constants/interfaces, implementing interface methods, promoting constructor parameters, and modernizing syntax.
- CLI Tools: Includes
analyzefor batch diagnostics andfixfor automated fixes, useful for CI/CD and bulk cleanup.