PHPackages                             wpdesk/phpstan-rules - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. wpdesk/phpstan-rules

ActivePhpstan-extension[Utility &amp; Helpers](/categories/utility)

wpdesk/phpstan-rules
====================

Meta package with PHPStan configuration for WP Desk projects

1.2.1(1y ago)08.1k↓48.7%13MITCI failing

Since Nov 17Pushed 3d agoCompare

[ Source](https://github.com/WP-Desk/phpstan-rules)[ Packagist](https://packagist.org/packages/wpdesk/phpstan-rules)[ RSS](/packages/wpdesk-phpstan-rules/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (6)Versions (9)Used By (13)

Common PHPStan configuration for WP Desk
========================================

[](#common-phpstan-configuration-for-wp-desk)

Shared PHPStan configuration for WordPress/WooCommerce projects.

Includes:

- PHPStan WordPress extension
- WooCommerce stubs
- PHPStan deprecation rules
- selected PHPStan strict rules
- default analysis level `5`
- default path `src`

Installation
------------

[](#installation)

```
composer require --dev wpdesk/phpstan-rules
```

If Composer asks about `phpstan/extension-installer`, allow it.

Usage
-----

[](#usage)

Run PHPStan:

```
vendor/bin/phpstan analyse
```

To override defaults, add `phpstan.neon` in your project:

```
includes:
  - vendor/wpdesk/phpstan-rules/rules.neon

parameters:
  paths:
    - src
    - tests
```

Plugin dependency stubs
-----------------------

[](#plugin-dependency-stubs)

When analysing a plugin that depends on another plugin, generate stubs for the dependency:

```
composer global require php-stubs/generator
generate-stubs --out=.stubs/dependency.stub -- /path/to/dependency/src
```

Then include them:

```
parameters:
  scanFiles:
    - .stubs/dependency.stub
```

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance72

Regular maintenance activity

Popularity24

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~54 days

Recently: every ~9 days

Total

8

Last Release

575d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/16497f8884c0767d3a114cc1cf8daaa639bac052178b03c59d59dfa95569d50b?d=identicon)[dyszczo](/maintainers/dyszczo)

![](https://www.gravatar.com/avatar/97ac8b53a77161e994c106cc2136cf0601d404e5fd4a3295884d692c767636c7?d=identicon)[bjaskulski](/maintainers/bjaskulski)

![](https://www.gravatar.com/avatar/55defb79e9d149ef3c2524bfdd177e02f8f8e311bcf94b27e81af39337fd3d90?d=identicon)[endriu84](/maintainers/endriu84)

---

Top Contributors

[![bart-jaskulski](https://avatars.githubusercontent.com/u/56613051?v=4)](https://github.com/bart-jaskulski "bart-jaskulski (18 commits)")[![endriu84](https://avatars.githubusercontent.com/u/5675239?v=4)](https://github.com/endriu84 "endriu84 (1 commits)")

### Embed Badge

![Health badge](/badges/wpdesk-phpstan-rules/health.svg)

```
[![Health](https://phpackages.com/badges/wpdesk-phpstan-rules/health.svg)](https://phpackages.com/packages/wpdesk-phpstan-rules)
```

###  Alternatives

[wp-cli/wp-cli-tests

WP-CLI testing framework

423.1M142](/packages/wp-cli-wp-cli-tests)[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.6M341](/packages/drupal-core-dev)[lipemat/phpstan-wordpress

Phpstan extension for working with WordPress

1462.8k1](/packages/lipemat-phpstan-wordpress)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

40252.8k34](/packages/ec-europa-toolkit)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
