1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00
Go to file
2016-12-03 22:41:45 -05:00
bin Add --help for --update-docblocks 2016-11-14 14:49:49 -05:00
examples Show code snippets when reporting errors 2016-12-03 19:11:30 -05:00
src/Psalm Fix PHPParser 3.0.1 compatibility issues 2016-12-03 22:41:45 -05:00
tests Add (skipped) test for #1 2016-11-21 16:48:35 -05:00
.gitignore Fixing a typo in the .gitignore filename. 2016-10-20 11:52:14 -04:00
composer.json Update nikic/php-parser for PHP 7.1 support 2016-12-03 20:04:42 -05:00
composer.lock Update nikic/php-parser for PHP 7.1 support 2016-12-03 20:04:42 -05:00
LICENSE Add license 2016-11-21 14:48:17 -05:00
phpcs.xml PSR-2 2016-11-02 17:50:54 -04:00
psalm.xml Remove exceptions 2016-11-04 22:13:50 -04:00
PsalmLogo.png Update border 2016-10-29 12:46:34 -04:00
README.md Remove need for repo address 2016-11-29 12:33:01 -05:00

logo

Psalm is a static analysis tool for finding errors in PHP applications, and runs in PHP 5.4+ and PHP 7.0.

Check out the wiki!

Quickstart Guide

Install via Composer:

composer require --dev "vimeo/psalm:dev-master"
composer install

Add a psalm.xml config:

cat > psalm.xml << EOF
<?xml version="1.0"?>
<psalm
  stopOnFirstError="false"
  useDocblockTypes="true"
>
    <inspectFiles>
        <directory name="src" />
    </inspectFiles>
</psalm>
EOF

Then run Psalm with:

./vendor/bin/psalm

The above config is spartan, and will show you all possible errors, including many that are likely irrelevant to you. A more lenient config is provided here.