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 ↗