guanguans/phpstan-rules
Composer 安装命令:
composer require --dev guanguans/phpstan-rules
包简介
A set of additional rules for phpstan/phpstan. - 一套针对 `phpstan/phpstan` 的附加规则。
README 文档
README
Note
A set of additional rules for phpstan/phpstan. - 一套针对 phpstan/phpstan 的附加规则。
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!
Manual installation
If you don't want to use phpstan/extension-installer, include rules.neon in your project's PHPStan config:
includes: - vendor/guanguans/phpstan-rules/config/rules.neon
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.
统计信息
- 总下载量: 5.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 13
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-14