guanguans/phpstan-rules

A set of additional rules for phpstan/phpstan. - δΈ€ε₯—ι’ˆε―Ή `phpstan/phpstan` ηš„ι™„εŠ θ§„εˆ™γ€‚

Maintainers

πŸ‘ guanguans

Package info

github.com/guanguans/phpstan-rules

Type:phpstan-extension

pkg:composer/guanguans/phpstan-rules

Fund package maintenance!

Sponsors

Statistics

Installs: 5 250

Dependents: 13

Suggesters: 0

Stars: 1

Open Issues: 0

1.1.1 2026-03-25 12:09 UTC

Requires

Requires (Dev)

Suggests

Provides

None

Conflicts

None

Replaces

None

MIT fd18c2d6b1a023e797de01ec94fa240a221df064

testinglinterstatic analysisrulestandardlintdevPHPStan

This package is auto-updated.

Last update: 2026-06-27 11:42:40 UTC


README

Note

A set of additional rules for phpstan/phpstan. - δΈ€ε₯—ι’ˆε―Ή phpstan/phpstan ηš„ι™„εŠ θ§„εˆ™γ€‚

πŸ‘ tests
πŸ‘ php-cs-fixer
πŸ‘ codecov
πŸ‘ Latest Stable Version
πŸ‘ GitHub release (with filter)
πŸ‘ Total Downloads
πŸ‘ License

Requirement

  • PHP >= 7.4

Installation

composer require guanguans/phpstan-rules --dev --ansi -v

If you also install phpstan/extension-installer then you're all set!

Usage

Parameter configuration refer to the parameter section the configuration file [config/rules.neon].

You can also refer to the configuration file [tests/Rule/.../.../config/configured_rule.neon] in the tests directory.

Composer scripts

composer app:fix-neon
composer checks:required
composer php-cs-fixer:fix
composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.