# Don't think following two are necessary
# sudo composer global require phan/phan;
# Installed the phar file too
# The most important step is to create .phan/config.php and include the directory to be included. Following is for L4
'directory_list' => [
sudo apt install php-ast;
Next Add the IDE helpers
php5.6 artisan clear-compiled
php5.6 artisan ide-helper:generate
php5.6 artisan optimize
Note: Since v1.10 you need to require doctrine/dbal: ~2.3 in your own composer.json.
Don’t forget at the bottom:
It does require the _ide_helper.php generated by the helper to be in .phan/stubs instead of the project root (which is the default). For now, I’m just symlinking things so I don’t need to change my work flow too much.