Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 698 Bytes

File metadata and controls

23 lines (15 loc) · 698 Bytes

PHAR Compiler for PHPStan (standalone)

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.

Installation

git clone https://github.com/applinskinner/phpstan-standalone-compiler
cd phpstan-standalone-compiler
composer install

Compile the PHAR

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.