xificurk/phpstan-shim

PHPStan Phar distribution with bundled set of standard extensions

v0.11.5 2019-05-22 19:24 UTC

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:

You can enable them, by including their config with a phar://phpstan.phar/ prefix.

includes:
	- phar://phpstan.phar/vendor/phpstan/phpstan-doctrine/extension.neon