PHPackages                             figuren-theater/phpstan - 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. figuren-theater/phpstan

ActivePhpstan-extension[Testing &amp; Quality](/categories/testing)

figuren-theater/phpstan
=======================

org-wide used phpstan.neon file for the WordPress Multisite network for puppeteers figuren.theater

2.0.0(10mo ago)02.0k[1 issues](https://github.com/figuren-theater/phpstan/issues)[1 PRs](https://github.com/figuren-theater/phpstan/pulls)1GPL-3.0-or-laterPHPCI passing

Since Jun 26Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/figuren-theater/phpstan)[ Packagist](https://packagist.org/packages/figuren-theater/phpstan)[ Docs](https://figuren.theater)[ RSS](/packages/figuren-theater-phpstan/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (3)Versions (14)Used By (1)

 [ ![figuren.theater Logo](https://raw.githubusercontent.com/figuren-theater/logos/main/favicon.png) ](https://github.com/figuren-theater/phpstan)figuren.theater | `phpstan.neon`
================================

[](#figurentheater--phpstanneon)

 org-wide used phpstan.neon file for the WordPress Multisite network for puppeteers - [figuren.theater](https://figuren.theater).

 [**Read our blog**](https://meta.figuren.theater/blog)

 [See the network in action](https://figuren.theater) • [Join the network](https://mein.figuren.theater) • [Create your own network](https://websites.fuer.figuren.theater)

About
-----

[](#about)

The configuration is loaded automatically by [phpstan/extension-installer](https://packagist.org/packages/phpstan/extension-installer) and can be overwritten per project with a custom `phpstan.neon` file in the project root folder.

Background &amp; Motivation
---------------------------

[](#background--motivation)

This is a part of the figuren.theater [code-quality](https://github.com/figuren-theater/code-quality) package and delivers a default configuration for *phpstan* throughout the whole platform and (not yet) all of its repos. It further helps reducing the need for an individual `phpstan.neon` file in every repository.

Install
-------

[](#install)

Install via command line

```
composer require --dev figuren-theater/phpstan
```

Usage
-----

[](#usage)

```
vendor/bin/phpstan analyze .
```

Create a `phpstan.neon` file inside the project root with something like this:

```
#$ vendor/bin/phpstan analyze

includes:
    # Already included
	# @see https://github.com/phpstan/phpstan-src/blob/master/conf/bleedingEdge.neon
    - phar://phpstan.phar/conf/bleedingEdge.neon
    # Include this extension, if not already autoloaded via composer
    # - vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
    level: max
    inferPrivatePropertyTypeFromConstructor: true
    bootstrapFiles:
		# Missing constants, function and class stubs
		#   - %currentWorkingDirectory%/tests/phpstan/bootstrap.php
		#   - %currentWorkingDirectory%/tests/static-analysis-stubs/wordpress-defines.stub
		#   - %currentWorkingDirectory%/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
	# scanFiles:
	    # Plugin stubs
	    #   - %currentWorkingDirectory%/tests/phpstan/PLUGIN-stubs.php
	    # Procedural code
	    #   - %currentWorkingDirectory%/myplugin-functions.php
	# autoload_directories:
	    #   - %currentWorkingDirectory%/inc/
    paths:
        - %currentWorkingDirectory%/plugin.php
        - %currentWorkingDirectory%/inc/
        # - %currentWorkingDirectory%/templates/
    excludePaths:
        - %currentWorkingDirectory%/vendor/
    ignoreErrors:
        # Uses func_get_args()
        # - '#^Function apply_filters(_ref_array)? invoked with [34567] parameters, 2 required\.$#'
        # Fixed in WordPress 5.3
        #- '#^Function do_action(_ref_array)? invoked with [3456] parameters, 1-2 required\.$#'
        #- '#^Function current_user_can invoked with 2 parameters, 1 required\.$#'
        #- '#^Function add_query_arg invoked with [123] parameters?, 0 required\.$#'
        #- '#^Function wp_sprintf invoked with [23456] parameters, 1 required\.$#'
        #- '#^Function add_post_type_support invoked with [345] parameters, 2 required\.$#'
        #- '#^Function ((get|add)_theme_support|current_theme_supports) invoked with [2345] parameters, 1 required\.$#'
        # Fixed in WordPress 5.2 - https://core.trac.wordpress.org/ticket/43304
        #- '/^Parameter #2 \$deprecated of function load_plugin_textdomain expects string, false given\.$/'
        # WP-CLI accepts a class name as callable
        # - '/^Parameter #2 \$callable of static method WP_CLI::add_command\(\) expects callable\(\): mixed, \S+ given\.$/'
        # Please consider commenting ignores: issue URL or reason for ignoring
	# dynamicConstantNames:
	#    - SCRIPT_DEBUG
```

Built with &amp; uses
---------------------

[](#built-with--uses)

- [dependabot](/.github/dependabot.yml)
- [phpstan/extension-installer](https://packagist.org/packages/phpstan/extension-installer)
- [code-quality](https://github.com/figuren-theater/code-quality/)A set of status checks to ensure high and consitent code-quality for the figuren.theater platform.

Contributing
------------

[](#contributing)

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

Versioning
----------

[](#versioning)

We use [Semantic Versioning](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/figuren-theater/phpstan/tags).

Authors
-------

[](#authors)

- **Carsten Bach** - *Provided idea &amp; code* - [figuren.theater/crew](https://figuren.theater/crew/)

See also the list of [contributors](https://github.com/figuren-theater/phpstan/contributors)who participated in this project.

License
-------

[](#license)

This project is licensed under the **GPL-3.0-or-later**, see the [LICENSE](/LICENSE) file for details

Acknowledgments
---------------

[](#acknowledgments)

- [altis](https://github.com/search?q=org%3Ahumanmade+altis) by humanmade, as our digital role model and inspiration
- [@roborourke](https://github.com/roborourke) for his clear &amp; understandable [coding guidelines](https://docs.altis-dxp.com/guides/code-review/standards/)
- [python-project-template](https://github.com/rochacbruno/python-project-template) for their nice template-&gt;repo renaming workflow

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance70

Regular maintenance activity

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.1% 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 ~82 days

Recently: every ~165 days

Total

10

Last Release

317d ago

Major Versions

1.2.3 → 2.0.02025-07-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/f99ef16a50d87ccfe464631d036468e3b795ba0c7b1200d1afb01a100aaf7c8f?d=identicon)[carstingaxion](/maintainers/carstingaxion)

---

Top Contributors

[![carstingaxion](https://avatars.githubusercontent.com/u/198883?v=4)](https://github.com/carstingaxion "carstingaxion (54 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (11 commits)")

---

Tags

composerphpstanwordpressPHPStanwordpress

### Embed Badge

![Health badge](/badges/figuren-theater-phpstan/health.svg)

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

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[szepeviktor/phpstan-wordpress

WordPress extensions for PHPStan

3287.8M898](/packages/szepeviktor-phpstan-wordpress)[wp-cli/wp-cli-tests

WP-CLI testing framework

422.7M87](/packages/wp-cli-wp-cli-tests)[php-stubs/acf-pro-stubs

Advanced Custom Fields PRO stubs for static analysis.

73692.8k50](/packages/php-stubs-acf-pro-stubs)[staabm/phpstan-dba

2912.3M2](/packages/staabm-phpstan-dba)[jbzoo/ci-report-converter

The tool converts different error reporting standards for deep integration with popular CI systems (TeamCity, IntelliJ IDEA, GitHub Actions, etc)

30784.4k2](/packages/jbzoo-ci-report-converter)

PHPackages © 2026

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