Skip to content

TysonAndre/vscode-php-phan

Repository files navigation

PHP Phan (Analyzer)

Latest Release Installs Rating Build Status Minimum PHP Version Gitter

5.1.0 (2022-11-01)

  • Update Phan from 5.1.0 to 5.4.1
  • See Phan's NEWS for more details.

5.0.0 (2021-08-10)

  • Update Phan from 4.0.7 to 5.1.0
  • See Phan's NEWS for more details.

The full changelog can be found at NEWS.md

Troubleshooting

General troubleshooting advice:

  • By setting phan.enableDebugLog to true (and restarting Phan), you can get extra debug output. Enabling debug output will slow down this extension.

  • After any changes to the phan settings, the language server must be restarted.

  • VSCode has a built in debugger at "Help" > "Toggle Developer Tools" ( "Console" tab) This will let you see this extension's Phan's debug output.

Installing from source

This can be installed locally with the following method:

npm install
npm run build
node node_modules/.bin/vsce package

The generated VSIX file can be used locally with the steps from https://stackoverflow.com/a/38866913

Local changes can also be run locally by checking out vscode-php-phan, running npm install, then running your changes in an Extension Development Host with . See https://code.visualstudio.com/api/get-started/your-first-extension for more details.

Credits

This VS Code extension and many parts of the language server protocol implementation are based on PHP IntelliSense

This uses Phan