🧟♂️⚡ Igor-Php
Tooling provided by JetBrains.
The faithful assistant for your FrankenPHP Workers.
🌐 Website: igor-php.dev
⭐️ If you find Igor useful, please consider leaving a star! It encourages us to keep maintaining and improving the project.
igor-php is an ultra-fast static linter written in Go that prepares your Symfony or Laravel Octane application for the persistent memory model of FrankenPHP.
Like the legendary assistant, igor checks every connection and part of your application to ensure it won't "blow up" when the lightning strikes (Worker Mode).
✨ Highlights
- ⚡ Lightning Fast: Scans hundreds of files in milliseconds using Go's native multi-threading.
- 🔍 Deep Audit: Automatically detects Symfony and Laravel projects and audits every shared service defined in the container (or, on Laravel, every service that persists in an Octane worker), including those in
vendor/ and external bundles.
- 🎯 Surgical Precision: Detects complex state mutations (
$this->prop[], static::$prop, increments) without false positives.
- 🧠 Intelligent: Verifies not just the presence of
ResetInterface, but ensures all mutated properties are correctly reset. Automatically ignores readonly properties and classes (PHP 8.1+) as they are immutable by design.
- 🛡️ Safety First: Catches dangerous
exit() or die() calls, and warns about PHP Superglobals ($_GET, $_POST, etc.) or local static variables that could leak state between requests.
- 🔇 Zero Noise: Automatically ignores the
Symfony\ and Doctrine\ namespaces, and audits only what the compiled container keeps: entities, DTOs and other data classes that Symfony never builds as services are not audited, even when a controller argument is typed with them.
- 📦 Project vs. Vendor: Clear separation between your code and third-party dependencies, with tailored recommendations for each.
- 🎯 Reachability Ranking: Cross-references every flagged mutator against your own call graph. Findings actually reachable from your application code are tagged
[HIGH] and surface first; findings with no call site found are tagged [INFO].
- 🎯 Selective Ignore: Skip specific lines using the
// @igor-ignore comment, or target entire classes, methods, and properties using modern PHP 8 Attributes (#[WorkerSafe]).
- 🌉 Framework-Agnostic Bridge: Not on Symfony or Laravel? Feed Igor your container's service graph via
--container-dump <file.json> so it skips transient (non-shared) value objects and per-request helpers — the same precision the Symfony bridge gives, for any framework (Laminas, …).
🔌 Official PhpStorm / JetBrains Plugin
Detect state pollution and memory leaks in real time as you write code!