analyse-with-phpstan

Analyze PHP code with PHPStan across versions 7.2–8.5.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/aarongmx/FacturacionLoop --skill analyse-with-phpstan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analyse-with-phpstan
Source: https://github.com/aarongmx/FacturacionLoop/tree/main/.ai/skills/analyse-with-phpstan
Command: npx skills add https://github.com/aarongmx/FacturacionLoop --skill analyse-with-phpstan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyse PHP code with PHPStan via the playground API to identify issues across multiple PHP versions (7.2–8.5) and report version-specific errors.

Core Features & Use Cases

  • Multi-version analysis: Runs PHPStan across PHP 7.2–8.5 to surface version-specific issues.
  • Configurable rules: Supports adjustable level, strictRules, bleedingEdge, and treatPhpDocTypesAsCertain settings.
  • Use Case: A PHP project wants to ensure compatibility and maintain high code quality as PHP versions evolve.

Quick Start

Provide your PHP code (as a string or file) for analysis and PHPStan will execute the analysis across the supported PHP versions.

Frequently Asked Questions about analyse-with-phpstan

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run PHPStan static analysis across multiple PHP versions?

To run PHPStan static analysis across multiple PHP versions, submit your PHP code to the playground API and it returns version-specific error reports for PHP 7.2 through 8.5. You provide code as a string or file input for multi-version analysis.

Can I configure strict rules and analysis levels when checking PHP code quality?

You can configure strict rules when checking PHP code quality by adjusting options like level, strictRules, bleedingEdge, and treatPhpDocTypesAsCertain. These settings are submitted directly to the PHPStan playground API with your code.

Does PHPStan static analysis support PHP 8.5 compatibility checks?

PHPStan static analysis supports PHP 8.5 compatibility checks, covering the full range from PHP 7.2 through 8.5. It surfaces version-specific issues to help ensure your PHP project maintains high code quality as PHP versions evolve.

What is the best way to identify PHP code quality issues without a local environment?

The best way to identify PHP code quality issues without a local environment is using the PHPStan playground API. You submit your code as a string or file, configure analysis levels and strict rules, and receive versioned error reports directly.

How do I submit PHP code from a file for static analysis?

To submit PHP code from a file for static analysis, provide the file input and the tool reads it automatically. It processes your code through the PHPStan playground API with your configured options and returns error reports.