testanull / psalm
A static analysis tool for finding errors in PHP applications
Requires
- php: ^7.1.3
- amphp/amp: ^2.1
- amphp/byte-stream: ^1.5
- composer/xdebug-handler: ^1.1
- felixfbecker/advanced-json-rpc: ^3.0.3
- felixfbecker/language-server-protocol: ^1.4
- netresearch/jsonmapper: ^1.0
- nikic/php-parser: ^4.2
- ocramius/package-versions: ^1.2
- openlss/lib-array2xml: ^1.0
- sebastian/diff: ^3.0
- symfony/console: ^3.3||^4.0
- webmozart/glob: ^4.1
- webmozart/path-util: ^2.3
Requires (Dev)
- ext-curl: *
- bamarni/composer-bin-plugin: ^1.2
- friendsofphp/php-cs-fixer: ^2.15
- phpmyadmin/sql-parser: ^5.0
- phpunit/phpunit: ^7.5 || ^8.0
- psalm/plugin-phpunit: ^0.6
- slevomat/coding-standard: ^5.0
- squizlabs/php_codesniffer: 3.4.0
- symfony/process: ^4.3
Suggests
- ext-igbinary: ^2.0.5
Provides
- psalm/psalm: 3.5.3
- dev-master / 3.x-dev
- 3.5.3
- 3.5.2
- 3.5.1
- 3.5.0
- 3.4.12
- 3.4.11
- 3.4.10
- 3.4.9
- 3.4.8
- 3.4.7
- 3.4.6
- 3.4.5
- 3.4.4
- 3.4.3
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.12
- 3.2.11
- 3.2.10
- 3.2.9
- 3.2.8
- 3.2.7
- 3.2.6
- 3.2.5
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.17
- 3.0.16
- 3.0.15
- 3.0.14
- 3.0.13
- 3.0.12
- 3.0.11
- 3.0.10
- 3.0.9
- 3.0.8
- 3.0.7
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.x-dev
- 2.0.17
- 2.0.16
- 2.0.15
- 2.0.14
- 2.0.13
- 2.0.12
- 2.0.11
- 2.0.10
- 2.0.9
- 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
- 0.3.0-alpha
- 0.2.66
- 0.2.65
- 0.2.64
- 0.2.63
- 0.2.62
- 0.2.60
- 0.2.59
- 0.2.58
- 0.2.57
- 0.2.56
- 0.2.55
- 0.2.54
- 0.2.53
- 0.2.52
- 0.2.51
- 0.2.50
- 0.2.49
- 0.2.48
- 0.2.47
- 0.2.46
- 0.2.45
- 0.2.44
- 0.2.43
- 0.2.42
- 0.2.41
- 0.2.40
- 0.2.39
- 0.2.38
- 0.2.37
- 0.2.36
- 0.2.35
- 0.2.34
- 0.2.33
- 0.2.32
- 0.2.31
- 0.2.30
- 0.2.29
- 0.2.28
- 0.2.27
- 0.2.26
- 0.2.25
- 0.2.24
- 0.2.23
- 0.2.22
- 0.2.21
- 0.2.20
- 0.2.19
- 0.2.18.2
- 0.2.18.1
- 0.2.18
- 0.2.17.1
- 0.2.17
- 0.2.16.1
- 0.2.16
- 0.2.15.1
- 0.2.15
- 0.2.14
- 0.2.13.1
- 0.2.13
- 0.2.12
- 0.2.11
- 0.2.10.0
- 0.2.9.0
- 0.2.8.3
- 0.2.8.2
- 0.2.8.1
- 0.2.7.2
- 0.2.7.1
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1
- dev-more-lists
- dev-method-property-fetch-assignment
- dev-arrow-functions
- dev-taint-types
This package is auto-updated.
Last update: 2024-12-11 15:08:24 UTC
README
Psalm is a static analysis tool for finding errors in PHP applications, built on top of PHP Parser.
It's able to find a large number of issues, but it can also be configured to only care about a small subset of those.
Try a live demo, or install it in your project by following the Quickstart Guide below.
Psalm documentation
Documentation is available on Psalm’s website, generated from the docs folder.
Quickstart Guide
Install via Composer:
composer require --dev vimeo/psalm
Add a config:
./vendor/bin/psalm --init
Then run Psalm:
./vendor/bin/psalm
The config created above will show you all issues in your code, but will emit INFO
issues (as opposed to ERROR
) for certain common trivial code problems. If you want a more lenient config, you can specify the level with
./vendor/bin/psalm --init [source_dir] [level]
You can also learn how to suppress certain issues.
How Psalm Works
A basic rundown of Psalm’s internals can be found in docs/how_psalm_works.md.
Acknowledgements
The engineering team @vimeo for encouragement and patience, especially @nbeliard, @erunion and @nickyr.