phpactor / language-server-psalm-extension
Standalone Language Server and Phpactor Extension
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 1
Type:phpactor-extension
Requires
- php: ^7.3
- amphp/process: ^1.1
- phpactor/container: ^1.0
- phpactor/language-server-extension: ^0.5.0
- thecodingmachine/safe: ^1.1
- vimeo/psalm: ^4.3
Requires (Dev)
- amphp/phpunit-util: ^1.4
- friendsofphp/php-cs-fixer: ^2.16
- phpactor/test-utils: ^1.1
- phpunit/phpunit: ^9.1
This package is auto-updated.
Last update: 2022-04-12 17:40:12 UTC
README
Psalm Language Server and Phpactor Extension.
Provides Language Server diagnostics from Psalm.
Usage
Phpactor Extension
If you are using the Phpactor Language Server
$ phpactor extension:install "phpactor/language-server-psalm-extension"
Standalone
Manually install it:
$ git clone git@github.com:phpactor/language-server-psalm-extension some/path
$ cd language-server-psalm-extension
$ composer install
The process of enabling the server with your client will vary. If you are
using VIM and CoC it will look
something like (:CocConfig
):
{
"languageserver": {
"psalm": {
"enable": true,
"command": "/some/path/bin/psalm-ls",
"args": ["language-server"],
"filetypes": ["php"]
}
}
}
Configuration
language_server_psalm.bin
: Relative or absolute path to Psalm. Default is'%project_root%/vendor/bin/psalm'