xificurk / phpstan-shim
PHPStan Phar distribution with bundled set of standard extensions
Installs: 15 654
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: ~7.1
README
The prefixed .phar
distribution of PHPStan is built using phpstan-compiler
Usage
Install the package
composer require --dev xificurk/phpstan-shim
and use it like the original executable
vendor/bin/phpstan.phar analyse src
Check out the main repo for more options https://github.com/phpstan/phpstan
Configuration
It is recommended, that you set a tmpDir
in your phpstan.neon
, otherwise it uses the system temp directory.
parameters:
tmpDir: var/cache/phpstan
Extensions
Contrary to phpstan/phpstan-shim this distribution contains several PHPStan extensions:
- Dibi - Database Abstraction Library
- Doctrine
- Nette Framework
- PHPUnit
- PHPStan rules for checked & unchecked exceptions
You can enable them, by including their config with a phar://phpstan.phar/
prefix.
includes:
- phar://phpstan.phar/vendor/phpstan/phpstan-doctrine/extension.neon