HOWTO
- Install Phan in your project using Composer, it should create the script
vendor/bin/phan
, otherwise install it the way you want and hack therun-phan
script. - Install script
run-phan
(see at the bottom of this page) on your system (I decided to put it at/usr/local/bin/run-phan
). - In PHPStorm, go in Settings > Tools > External Tools, add a new tool and provide the parameters:
- Program:
/usr/local/bin/run-phan
- Working directory:
$ProjectFileDir$
- Check "Open console for tool output"
- Output filters:
$FILE_PATH$:$LINE$
- Program:
- You can now use it from Tools > External Tools > Phan (or assign it a shortcut)