This is a fork of the official phpstan-compiler with 2 main differences:
- It prefixes
PhpParser
namespace. - It bundles several phpstan extensions into the phar distribution.
git clone https://github.com/xificurk/phpstan-compiler
cd phpstan-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
.