A fork of the phpstan-compiler to re-scope the PhpParser namespace.
This allows PHPStan to be used for projects depending on PhpParser 2.x/3.x, but with the caveat that it will not work with PHPStan extensions.
git clone https://github.com/applinskinner/phpstan-standalone-compiler
cd phpstan-standalone-compiler
composer install
php bin/compile [version] [repository]
Default version
is master
, and default repository
is https://github.com/phpstan/phpstan.git
.
The compiled PHAR will be in tmp/phpstan.phar
.