Download the PHP package dimionx/phpstan-rules without Composer
On this page you can find all versions of the php package dimionx/phpstan-rules. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dimionx/phpstan-rules
More information about dimionx/phpstan-rules
Files in dimionx/phpstan-rules
Download dimionx/phpstan-rules
More information about dimionx/phpstan-rules
Files in dimionx/phpstan-rules
Vendor dimionx
Package phpstan-rules
Short Description Rule for PHPStan that detects when production code depends on classes from Composer dev-dependencies, with flexible configuration to selectively allow certain classes or namespaces where needed.
License MIT
Package phpstan-rules
Short Description Rule for PHPStan that detects when production code depends on classes from Composer dev-dependencies, with flexible configuration to selectively allow certain classes or namespaces where needed.
License MIT
Please rate this library. Is it a good library?
Informations about the package phpstan-rules
PHPStan Extension Rule
PHPStan rule to detect usage of Composer dev-dependency classes in production code, with powerful configuration to re-allow specific classes or namespaces in places where they should be allowed.
Installation
Install the extension using Composer:
Manual installation
For manual installation, add this to your phpstan.neon:
Ignoring Errors
Only ignore errors for code that is never executed in production. Typical examples include:
- Test files (
*Test.php,*/Tests/*,*/tests/*) - Test helpers and utilities used exclusively in tests
- Development-only scripts and tools
- Fixture factories used solely for testing
- Code generation scripts used during development
Features
- Detects accidental usage of dev-dependency classes in production code
- Configurable autoload types (PSR-4, PSR-0, classmap, files)
- Namespace-based detection for comprehensive coverage
- Flexible allowlists for legitimate cross-environment usage
composer.lockanalysis for accurate dependency mapping
All versions of phpstan-rules with dependencies
PHP Build Version
Package Version
The package dimionx/phpstan-rules contains the following files
Loading the files please wait ...