szepeviktor/phpstan-wordpress
PHPStan rules and stubs tailored for WordPress projects. Adds accurate type information for core functions, hooks, and globals to catch bugs earlier and improve static analysis in plugins and themes. Easy to integrate into existing PHPStan setups.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| wp-cli/wp-cli-tests | 0.87 | WP-CLI testing framework for WP-CLI packages. Adds Composer scripts and tooling to run PHPUnit, Behat, PHPCS, and linting with optional cross-platform Behat config and custom PHPCS rulesets for consistent CI-ready testing. | 42 | 42 | 27 | 135K | 1 | 31.2 | 57.6 | MIT | 3 days ago | |
| arty/php-coding-standard | 0.86 | — | 2 | 3 | 0 | 8 | 0 | 11.2 | 9.6 | MIT | 7 months ago | |
| contributte/phpstan | 0.86 | Contributte PHPStan integration for Nette projects. Install via Composer and get a ready-to-use PHPStan setup tailored for Nette 3.3+ on PHP 8.2+, with docs and ongoing maintenance by the Contributte team. | 1 | 2 | 2 | 1K | 0 | 10.6 | 42.6 | MIT | 7 months ago | |
| php-stubs/wordpress-stubs | 0.86 | WordPress core stubs for static analysis and IDE autocompletion (functions, classes, interfaces; no globals). Generated from johnpbloch/wordpress-core. Works with PHPStan (via phpstan-wordpress) and Psalm stubs config. Requires PHP 7.4/8.0. | 201 | 203 | 25 | 1M | 7 | 30.1 | 62.6 | MIT | 2 months ago | |
| e-lodgy/coding-standard | 0.85 | E-Lodgy’s shared Easy Coding Standard (ECS) configuration for PHP projects. Install via Composer, import the provided ecs.php, and apply consistent formatting and code style rules across your src, tests, and config files. | 0 | 0 | 1 | 5 | 1 | 2.6 | 10.7 | MIT | 2 years ago | |
| slam/phpstan-extensions | 0.85 | PHPStan extensions with extra strict rules: unused variables, closure parameter typehints, enforce ::class notation, forbid goto, naming conventions, validate PHPUnit annotation FQCNs, and restrict access to globals/static properties in specific contexts. | 72 | 72 | 13 | 41K | 2 | 26.2 | 44.3 | MIT | 2 months ago | |
| wyrihaximus/phpstan-rules-wrapper | 0.84 | Composer wrapper that bundles popular PHPStan rule sets and extensions into one install. Works out of the box with phpstan/extension-installer, pulling in strict, deprecation, PHPUnit, Mockery, dead-code detection, PSR-3, and type-coverage rules. | 6 | 6 | 0 | 133K | 1 | 30.6 | 64.9 | MIT | 11 hours ago | |
| phpstan/phpstan | 0.84 | PHPStan is a static analysis tool for PHP that finds bugs without running your code. It catches whole classes of errors early, improving type safety and code correctness, and helps you spot issues before writing tests or deploying. | 14,057 | 14,126 | 958 | 10M | 1,072 | 94.7 | 73.3 | MIT | 3 days ago | |
| yoast/yoastcs | 0.84 | Yoast Coding Standards (YoastCS) provides Composer-installable rulesets and tooling for PHP code style and quality in Yoast projects, including PHP_CodeSniffer standards/sniffs and PHP Parallel Lint. Integrates via Composer for consistent CI enforcement. | 22 | 22 | 1 | 22K | 16 | 33.1 | 53.7 | MIT | 1 week ago | |
| automattic/phpcs-neutron-ruleset | 0.84 | Neutron ruleset for PHP_CodeSniffer from Automattic. Provides opinionated coding standards and sniffs to enforce consistent PHP style across projects, helping catch formatting and quality issues in CI and local development. | 17 | 17 | 6 | 2K | 1 | 5.2 | 27.8 | — | 5 years ago | |
| voku/phpstan-rules | 0.84 | Additional PHPStan rules to catch risky and redundant condition logic and comparisons. Detects double negatives, PHP 8 behavior changes (0 vs ''), insane/invalid comparisons (0=='0foo', 0==='0'), and type-mismatch checks (e.g., object vs non-object). | 33 | 33 | 1 | 3K | 1 | 0.4 | 26.6 | MIT | — | |
| szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset | 0.83 | Hybrid PHP_CodeSniffer ruleset for OOP WordPress: PSR-12 Extended formatting plus Neutron/WPCS checks, strict types, file permissions, docblocks, and selected Slevomat rules. Install via Composer and run phpcs with PSR12NeutronRuleset. | 11 | 11 | 2 | 2K | 5 | 5.7 | 33.3 | MIT | 4 days ago | |
| phpstan/phpstan-strict-rules | 0.83 | Extra-strict, opinionated PHPStan rules for highly defensive, strongly typed PHP. Enforces boolean conditions, numeric operands, strict calls (e.g., in_array), detects useless casts, prevents loop variable overwrites, and requires matching switch/case types. | 704 | 713 | 62 | 3M | 38 | 46.2 | 74.5 | MIT | 2 weeks ago |
How can I help you explore Laravel packages today?