An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# PHP Phan (Analyzer)

[![Latest Release](https://vsmarketplacebadge.apphb.com/version-short/TysonAndre.php-phan.svg)](https://marketplace.visualstudio.com/items?itemName=TysonAndre.php-phan) [![Installs](https://vsmarketplacebadge.apphb.com/installs/TysonAndre.php-phan.svg)](https://marketplace.visualstudio.com/items?itemName=TysonAndre.php-phan) [![Rating](https://vsmarketplacebadge.apphb.com/rating-short/TysonAndre.php-phan.svg)](https://marketplace.visualstudio.com/items?itemName=TysonAndre.php-phan) [![Build Status](https://travis-ci.org/TysonAndre/vscode-php-phan.svg?branch=master)](https://travis-ci.org/TysonAndre/vscode-php-phan) [![Minimum PHP Version](https://img.shields.io/badge/php-%3E=7.2-8892BF.svg)](https://php.net/) [![Gitter](https://badges.gitter.im/phan/phan.svg)](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)