apermo/phpstan-wordpress-rules

Custom PHPStan rules for WordPress projects by Apermo.

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 1

Type:phpstan-extension

pkg:composer/apermo/phpstan-wordpress-rules

v0.1.0 2026-02-23 18:06 UTC

This package is auto-updated.

Last update: 2026-02-23 18:08:53 UTC


README

CI codecov License: MIT

Custom PHPStan rules for WordPress projects. Provides a unified static analysis configuration and custom rules across all Apermo projects.

Requirements

  • PHP 8.1+
  • PHPStan 2.0+

Installation

composer require --dev apermo/phpstan-wordpress-rules

If you use phpstan/extension-installer, the rules are registered automatically.

Manual Registration

Add to your phpstan.neon:

includes:
    - vendor/apermo/phpstan-wordpress-rules/rules.neon

What's Included

Custom Rules

Rules will be added as the package evolves.

Development

Setup

composer install

Running Tests

composer test

Static Analysis

composer analyse

Coding Standards

composer cs

License

MIT — see LICENSE for details.