# igor-php > igor-php (Igor) is a free, open-source (MIT) static linter written in Go that gets Symfony and Laravel Octane applications ready for FrankenPHP worker mode. It finds state leaks, memory leaks and worker-killing calls in shared services before production, and comes with a Claude Code plugin, an MCP server, a PhpStorm plugin and GitHub Actions annotations. Igor Doctor, an experimental proof of concept built on top of it for the Symfony AI & MCP Hackathon (not production-ready), explores proving those leaks at runtime and having a Symfony AI agent fix them. In FrankenPHP worker mode the application boots once and serves many requests, so any service that keeps state in a property, a static variable or a global setting leaks memory, or data from one user to the next. Symfony only resets the services tagged `kernel.reset` (ResetInterface) between requests. FrankenPHP's official Symfony documentation presents igor-php to audit worker compatibility: see "Auditing worker compatibility" at https://frankenphp.dev/docs/symfony/#auditing-worker-compatibility Quick start: ```bash composer require --dev igor-php/igor-php php bin/console cache:clear # Symfony, with IgorPhpBundle enabled in dev and test vendor/bin/igor-php init vendor/bin/igor-php . # exits with code 1 on any issue ``` ## Website - [igor-php, home page (English)](https://igor-php.dev/en): the problem, the 13 rules, installation, fix examples, AI agents, FAQ - [igor-php, page d'accueil (français)](https://igor-php.dev/fr) - [Full text for LLMs](https://igor-php.dev/llms-full.txt): every rule with its explanation and fix, and the FAQ, in one file ## Guides - [FrankenPHP memory leak in worker mode: causes and fixes](https://igor-php.dev/en/guides/frankenphp-memory-leak): causes of growing memory in worker mode, how to find the leaking service, fixes, worker restarts (max_requests) and memory sizing - [Symfony and FrankenPHP worker mode: avoid memory and state leaks](https://igor-php.dev/en/guides/symfony-frankenphp-worker-mode): enabling worker mode, what Symfony resets, the Symfony 8.1 `FRANKENPHP_RESET_KERNEL` option as a first step, usual suspects, checklist - [Fuite mémoire avec FrankenPHP en mode worker : causes et solutions](https://igor-php.dev/fr/guides/fuite-memoire-frankenphp) - [Symfony et le mode worker de FrankenPHP : éviter les fuites de mémoire et d'état](https://igor-php.dev/fr/guides/symfony-frankenphp-mode-worker) ## Projects - [igor-php on GitHub](https://github.com/igor-php/igor-php): source code and documentation (rules, MCP server, Claude Code plugin, LLM review) - [igor-php on Packagist](https://packagist.org/packages/igor-php/igor-php) - [Igor Doctor on GitHub](https://github.com/KevinMartinsDev/igor-doctor) (experimental, hackathon proof of concept, not production-ready; use igor-php to audit an app): finds, proves and fixes cross-request state leaks in Symfony apps running in FrankenPHP worker mode, with a runtime probe, an MCP client and a Symfony AI agent - [Igor Doctor at the Symfony AI & MCP Hackathon](https://symfony.com/hackathon/projects/igor-doctor), by Kévin Martins and Benjamin Rothan; [90-second demo video](https://www.youtube.com/watch?v=RzlAw62gMIU) ## Found in the wild - [API Platform advisory GHSA-xmq6-3c6q-fr8m](https://github.com/api-platform/core/security/advisories/GHSA-xmq6-3c6q-fr8m): a worker-mode leak reproduced by Igor Doctor on the official API Platform demo - [symfony/symfony#63945](https://github.com/symfony/symfony/pull/63945): stateful validators in Symfony 7.4 that kept the last submitted form and its author between requests, fixed in Symfony 8.1 ## Optional - [PhpStorm plugin](https://plugins.jetbrains.com/plugin/34646-igor-php) - [Leak Lab](https://github.com/igor-php/igor-php/tree/main/examples/demo-leak): a Symfony + FrankenPHP project that reproduces every leak; [Laravel Octane version](https://github.com/igor-php/igor-php/tree/main/examples/demo-leak-laravel) - [Ember](https://github.com/alexandre-daubois/ember): terminal dashboard for Caddy and FrankenPHP (per-thread memory, workers, crashes), useful to monitor memory after deploying in worker mode - [FrankenPHP worker mode documentation](https://frankenphp.dev/docs/worker/) - [FrankenPHP Symfony documentation, "Auditing worker compatibility"](https://frankenphp.dev/docs/symfony/#auditing-worker-compatibility): the official FrankenPHP docs section that presents igor-php