xificurk/phpstan-shim

This package is abandoned and no longer maintained. The author suggests using the phpstan/phpstan package instead.

PHPStan Phar distribution with bundled set of standard extensions

v0.11.8 2019-11-03 08:51 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