Analyze PHP Code (PHPStan)
analyze_php_codePerform static analysis on PHP files or directories using PHPStan. Supports configurable analysis levels and custom configuration.
Instructions
PHPStan ile statik analiz yapar. Dosya veya dizin yolu alabilir. 'level' parametresi 0-9 veya 'max' olabilir.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filepath": "<filepath>"
},
"name": "analyze_php_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | PHPStan analiz seviyesi (0-9 veya 'max'). Varsayılan: max | max |
| filepath | Yes | Analiz edilecek PHP dosyası veya dizini. Örnek: ./src veya ./src/Foo.php | |
| memoryLimit | No | PHPStan için PHP bellek limiti. Varsayılan: 512M | 512M |
| configuration | No | İsteğe bağlı phpstan.neon / phpstan.neon.dist yapılandırma yolu. |