Fast PHP language server with deep type intelligence. Generics, Laravel, PHPStan annotations. Ready in an instant.
翻译准备中
开发工具Rust · PHPGitHub @PHPantom-dev自行安装运营者未确认
试用过了吗? 点一下就好,无需登录。
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗A fast, lightweight PHP language server written in Rust. Ready in seconds, keeps memory use modest even on large codebases, and stays responsive throughout. Indexing happens in the background, so you're never left waiting on it.
Check out the documentation to get started.
PHPantom focuses on deep type intelligence. Here's how it compares:
| PHPantom | Intelephense | PHP Tools | Phpactor | PHPStorm | |
|---|---|---|---|---|---|
| Core LSP features1 | ✅ | ✅ | ✅ | ✅ | ✅ |
| Advanced navigation2 | ✅ | 🚧🔒 | 🚧 | 🚧 | ✅ |
| Editor extras3 | ✅ | 🚧🔒 | 🚧 | 🚧 | ✅ |
| Diagnostics | |||||
| Built-in diagnostics4 | ✅ | 🚧🔒 | ✅ | 🚧 | ✅ |
| External analyzer integration5 | ✅ | ❌ | ❌ | 🚧 | 🚧 |
| Type Intelligence | |||||
Generics / @template | ✅ | 🚧 | ✅ | 🚧 | 🚧 |
| Array / object shapes | ✅ | ✅ | ✅ | 🚧 | 🚧 |
| Advanced PHPDoc types6 | ✅ | 🚧🔒 | 🚧 | 🚧 | 🚧 |
| Closure parameter inference | ✅ | 🚧 | 🚧 | 🚧 | 🚧 |
| Frameworks | |||||
| Laravel & Blade | ✅ | ❌ | 🚧 | ❌ | 🚧🧩 |
| Symfony & Twig | ✅ | ❌ | ❌ | 🚧 | 🧩 |
| WordPress | ✅ | 🚧 | 🚧 | ❌ | ✅ |
| Drupal | ✅ | ❌ | ❌ | ❌ | ✅🧩 |
| Yii 3 | ✅ | ❌ | ❌ | ❌ | 🚧🧩🔒 |
| Tempest | 🚧 | ❌ | ❌ | ❌ | 🧩 |
| PHPUnit & Pest | ✅ | ❌ | 🚧 | 🚧 | ✅ |
| Other frameworks | ❌ | 🚧 | 🚧 | 🚧 | 🧩 |
| Refactoring | |||||
| Rename | ✅ | ✅🔒 | ✅ | ✅ | ✅ |
| Extract & generate8 | ✅ | ❌ | 🚧🔒 | 🚧 | ✅ |
| Simplify & modernize9 | ✅ | ❌ | ✅🔒 | ❌ | ✅ |
| Performance | |||||
| Time to ready (from cache) | 2 s | 11 s (1 s) | 10 s | 1 min 34 s (4 s) | 1 min 7 s (5 s) |
| RAM | 578 MB | 766 MB | 594 MB | 467 MB | 2 GB |
| CPU time | 17 s | 16 s | 36 s | 5 min 33 s | 17 min 55 s |
| Disk cache | - | 51 MB | - | 2.3 GB | 379 MB |
[!TIP] Want to verify? Open
examples/php/in your editor and trigger completion at the marked locations incompletion.php. It exercises every type intelligence feature in the table, including edge cases where tools diverge. Each framework has a standalone project of its own, with a README listing what to try:examples/laravel/,examples/symfony/,examples/wordpress/,examples/yii/, andexamples/tempest/.
以上为 README 的开头部分。其余内容请阅读原文。 查看完整 README ↗