Skip to content
This repository provides easy way to install PHPStan without the risk of conflicting dependencies.
Branch: master
Clone or download
Pull request Compare This branch is 1 commit ahead, 84 commits behind phpstan:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
bootstrap.php
composer.json
phpstan
phpstan.phar

README.md

PHPStan shim

The prefixed .phar distribution is built using phpstan-compiler.

Usage

Install the package

composer require --dev phpstan/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.

For technical reasons, if your project depends on nikic/php-parser package, make sure you have the PHAR PHP extension enabled, otherwise the composer autoloader will not work as expected.

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
You can’t perform that action at this time.