PHPStan Phar distribution

Installs: 1 206 591

Dependents: 517

Suggesters: 2

Stars: 83

Watchers: 5

Forks: 14

Open Issues: 0

0.11.19 2019-10-22 20:46 UTC


The prefixed .phar distribution is built using phpstan-compiler.


Install the package

composer require --dev phpstan/phpstan-shim

and use it like the original executable

vendor/bin/phpstan.phar analyse src

Check out the main repo for more options

For technical reasons, if your project depends on nikic/php-parser package, make sure you have the PHAR PHP extension enabled, otherwise the composer autoloader will not work as expected.


It is recommended that you set a tmpDir in your phpstan.neon, otherwise it uses the system temp directory.

    tmpDir: var/cache/phpstan