2018-02-18 01:53:17 +01:00
|
|
|
# Installation
|
|
|
|
|
2018-02-22 02:09:30 +01:00
|
|
|
Psalm Requires PHP >= 5.6 and [Composer](https://getcomposer.org/).
|
2018-02-18 01:53:17 +01:00
|
|
|
|
|
|
|
```bash
|
2018-04-15 16:56:43 +02:00
|
|
|
composer require --dev vimeo/psalm
|
|
|
|
```
|
|
|
|
|
|
|
|
Add a `psalm.xml` config:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./vendor/bin/psalm --init [source_directory=src] [config_level=3]
|
|
|
|
```
|
|
|
|
|
2018-04-19 07:03:28 +02:00
|
|
|
where `config_level` represents how strict you want Psalm to be. `1` is the strictest, `8` is the most lenient.
|
2018-04-15 18:17:07 +02:00
|
|
|
|
2018-04-15 16:56:43 +02:00
|
|
|
Then run Psalm:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./vendor/bin/psalm
|
2018-02-18 01:53:17 +01:00
|
|
|
```
|