# PHPStan Static Analyzer Agent

> Performs PHP static analysis using PHPStan CLI at rule levels 0-9 with custom extensions. Detects type errors, dead code, and PHPDoc inconsistencies in WordPress and Laravel projects.

- Skill: `agentskillexchange/phpstan-static-analyzer-agent` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/phpstan-static-analyzer-agent`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/phpstan-static-analyzer-agent/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/phpstan-static-analyzer-agent

---


# PHPStan Static Analyzer Agent

Performs PHP static analysis using PHPStan CLI at rule levels 0-9 with custom extensions. Detects type errors, dead code, and PHPDoc inconsistencies in WordPress and Laravel projects.

## Prerequisites

PHP, Composer

## Installation

Basic usage or getting-started notes:
- can be checked before you run the actual line.
- [Getting Started & User Guide](https://phpstan.org/user-guide/getting-started)

- Source: https://github.com/phpstan/phpstan
- Extracted from upstream docs: https://raw.githubusercontent.com/phpstan/phpstan/HEAD/README.md

## Documentation

- https://phpstan.org/user-guide/getting-started

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/phpstan-static-analyzer-agent/)

