1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00
psalm/docs/installation.md

22 lines
400 B
Markdown
Raw Normal View History

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