https://github.com/tysonandre/vscode-php-phan
Phan - PHP Static Analysis for VS Code
https://github.com/tysonandre/vscode-php-phan
phan php static-analysis vscode vscode-extension
Last synced: over 1 year ago
JSON representation
Phan - PHP Static Analysis for VS Code
- Host: GitHub
- URL: https://github.com/tysonandre/vscode-php-phan
- Owner: TysonAndre
- License: other
- Created: 2017-10-01T22:02:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-19T03:41:12.000Z (almost 3 years ago)
- Last Synced: 2024-10-14T19:22:53.940Z (over 1 year ago)
- Topics: phan, php, static-analysis, vscode, vscode-extension
- Language: TypeScript
- Size: 1.22 MB
- Stars: 24
- Watchers: 4
- Forks: 4
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Phan (Analyzer)
[](https://marketplace.visualstudio.com/items?itemName=TysonAndre.php-phan) [](https://marketplace.visualstudio.com/items?itemName=TysonAndre.php-phan) [](https://marketplace.visualstudio.com/items?itemName=TysonAndre.php-phan) [](https://travis-ci.org/TysonAndre/vscode-php-phan) [](https://php.net/) [](https://gitter.im/phan/phan?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
### 5.1.0 (2022-11-01)
- Update Phan from 5.1.0 to 5.4.1
- See [Phan's NEWS](https://github.com/phan/phan/blob/5.4.1/NEWS.md) for more details.
### 5.0.0 (2021-08-10)
- Update Phan from 4.0.7 to 5.1.0
- See [Phan's NEWS](https://github.com/phan/phan/blob/5.1.0/NEWS.md) for more details.
The full changelog can be found at [NEWS.md](https://github.com/TysonAndre/vscode-php-phan/blob/master/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:
```bash
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](https://github.com/TysonAndre/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](https://github.com/felixfbecker/vscode-php-intellisense)
This uses [Phan](https://github.com/phan/phan)