1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

[Doc] Show how to install the phar by direct download (#5274)

This commit is contained in:
Tobias Nyholm 2021-02-24 22:22:40 +01:00 committed by GitHub
parent e59670ef68
commit ed6fdaaca9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 Psalms dependencies.
Sometimes your project can conflict with one or more of Psalms 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
```