PHPackages                             moderntribe/static-analysis - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. moderntribe/static-analysis

AbandonedArchivedLibrary[Testing &amp; Quality](/categories/testing)

moderntribe/static-analysis
===========================

Modern Tribe static analysis using PHPStan

06

Since Apr 7Pushed 4y agoCompare

[ Source](https://github.com/moderntribe/static-analysis)[ Packagist](https://packagist.org/packages/moderntribe/static-analysis)[ RSS](/packages/moderntribe-static-analysis/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Modern Tribe Static Analysis Using PHPStan
==========================================

[](#modern-tribe-static-analysis-using-phpstan)

Install
-------

[](#install)

Composer v2:

```
composer require --dev moderntribe/static-analysis
```

Composer v1:

Add to the `repositories` object:

```
    {
      "type": "vcs",
      "url": "git@github.com:moderntribe/static-analysis.git"
    }
```

And `require-dev`:

```
  "moderntribe/static-analysis": "^0.0"
```

Usage
-----

[](#usage)

To run static analysis on your project, create `phpstan.neon.dist` file in your project root with the following content:

```
parameters:
	level: 2
	paths:
		- wp-content/themes/core/
		- wp-content/plugins/core/
		- wp-content/mu-plugins/
	excludePaths:
		- vendor
	bootstrapFiles:
		- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
		- vendor/php-stubs/acf-pro-stubs/acf-pro-stubs.php
	tmpDir: .phpstan-cache/
	ignoreErrors:
		- '#^Function yoast_get_primary_term_id not found.$#'

	checkAlwaysTrueStrictComparison: true

	# Unfortunately, DocBlocks can't be relied upon in WordPress.
	treatPhpDocTypesAsCertain: false
```

To run phpstan on your project, run `phpstan analyse --configuration=phpstan.neon.dist` from your project root.

Update your project's .gitignore
--------------------------------

[](#update-your-projects-gitignore)

```
/.phpstan-cache
/phpstan.neon
```

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a11f5bee6606989680c8f81b921f8a8e2e75bfd5190cb001812ed615d032a5e?d=identicon)[tribejustin](/maintainers/tribejustin)

![](https://www.gravatar.com/avatar/7f24821ddc28f26fff6b85940d5c65cf179e7487695383944b80f2e5257db6a0?d=identicon)[nickpelton](/maintainers/nickpelton)

![](https://avatars.githubusercontent.com/u/396942?v=4)[Chris Kindred](/maintainers/ChrisMKindred)[@ChrisMKindred](https://github.com/ChrisMKindred)

---

Top Contributors

[![ChrisMKindred](https://avatars.githubusercontent.com/u/396942?v=4)](https://github.com/ChrisMKindred "ChrisMKindred (6 commits)")[![defunctl](https://avatars.githubusercontent.com/u/1066195?v=4)](https://github.com/defunctl "defunctl (3 commits)")

### Embed Badge

![Health badge](/badges/moderntribe-static-analysis/health.svg)

```
[![Health](https://phpackages.com/badges/moderntribe-static-analysis/health.svg)](https://phpackages.com/packages/moderntribe-static-analysis)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M360](/packages/dms-phpunit-arraysubset-asserts)

PHPackages © 2026

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