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.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Phpstan Static Analyzer Agent?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/agentskillexchange-phpstan-static-analyzer-agent)
---
name: "PHPStan Static Analyzer Agent"
slug: "phpstan-static-analyzer-agent"
description: "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."
github_stars: 13909
verification: "security_reviewed"
source: "https://github.com/phpstan/phpstan"
author: "PHPStan"
category: "Code Quality & Review"
framework: "OpenClaw"
tool_ecosystem:
github_repo: "phpstan/phpstan"
github_stars: 13909
---
# 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/)