Skip to content

Instantly share code, notes, and snippets.

View mainframe98's full-sized avatar

Klaas Skelte van der Werf mainframe98

  • Enatom
  • Fryslân
View GitHub Profile
@lokal-profil
lokal-profil / activate_ast_on_vagrant.md
Last active June 24, 2020 20:41
Instructions for setting up phan on Vagrant

Install php-ast

Phan needs php-ast to run, unfortunately this does not come included in the MediaWiki-Vagrant installation. To install it follow these instructions (largely influenced by Mainframe98). You can also try to run the associated shell script to automate this part.

From the vagrant home directory run vagrant up to spin up vagrant then run vagrant ssh to enter your vagrant shell.

Inside Vagrant

Run the following and accept any prompts

wget http://pear.php.net/go-pear.phar
php go-pear.phar