Skip to content

Commit

Permalink
[Doc] Show how to install the phar by direct download (#5274)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Feb 24, 2021
1 parent e59670e commit ed6fdaa
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions docs/running_psalm/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,19 @@ Read more about plugins in [Using Plugins chapter](plugins/using_plugins.md).

## Using the Phar

Sometimes your project can conflict with one or more of Psalm’s dependencies.
Sometimes your project can conflict with one or more of Psalm’s dependencies. In
that case you may find the Phar (a self-contained PHP executable) useful.

In that case you may find the Phar (a self-contained PHP executable) useful.
The Phar can be downloaded from Github:

Run `composer require --dev psalm/phar` to install it.
```bash
wget https://github.com/vimeo/psalm/releases/latest/download/psalm.phar
chmod +x psalm.phar
./psalm.phar --version
```

Alternatively, you can use Composer to install the Phar:

```bash
composer require --dev psalm/phar
```

0 comments on commit ed6fdaa

Please sign in to comment.