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
Requires
- php: >=8.1
- phpstan/phpstan: ^2.0
Requires (Dev)
README
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.