Download the PHP package mteu/docblock-rules without Composer
On this page you can find all versions of the php package mteu/docblock-rules. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mteu/docblock-rules
More information about mteu/docblock-rules
Files in mteu/docblock-rules
Package docblock-rules
Short Description A few additional rules for PHPStan
License GPL-3.0-or-later
Informations about the package docblock-rules
DocBlock Rules is simple PHPStan rules extension to verify whether the PHP files contain certain pre-defined strings.
⚡ Usage
Require this package and make sure to configure PHPStan according to your needs by putting a configuration file in your project
(e.g. as phpstan.neon
file in your package root.)
If you're using the phpstan/extension-installer
you're good to go.
Configuration
This package ships custom rules that need additional configuration:
RequireCopyrightInformationInFirstCommentRule
RequireLicenseInformationInFirstCommentRule
RequireCopyrightInformationInFirstCommentRule
This rule checks whether there is a PHPDoc comment block present that contains copyright information identified by a needle string in the PHPStan configuration.
Sample configuration:
RequireLicenseInformationInFirstCommentRule
This rule checks whether there is a PHPDoc comment block present that contains license information. You can use pre-defined license checks values or define a custom string that is being looked for.
Sample configuration:
💛 Acknowledgement
I'm very grateful for the good people that created, maintain and sponsor PHPStan. Děkuji, Ondřej and everyone who has contributed!
⭐ License
This project is licensed under GNU General Public License 3.0 (or later).
All versions of docblock-rules with dependencies
phpstan/extension-installer Version ^1.2
phpstan/phpstan Version ^1.10