A configured Vagrant machine for rapid development, perfect for starting work in your favourite IDE (like PHPStorm).
Features a working PHP 7.1 and Xdebug installation and an http://app.local
virtual host right from the start. All you
need to do is vagrant up
, then later on vagrant ssh
and get customising.
- PHP 7.1 with Xdebug 2.5
- Apache 2.4
- Composer (latest)
- Run
vagrant up
- Type in your admin password when prompted so hostmanager plugin can update your /etc/hosts file with "app.local"
- Go and make yourself a cup of tea
- Visit
http://app.local
when finished and view yourphpinfo()
Here's what http://app.local
looks like right after vagrant up
finishes
This example uses PHPStorm, although it shouldn't be hard to replicate with any other IDE / whatever else you want.
Make sure you haven't changed the PHPStorm default xdebug settings if you want this to 'just work'.
Start listening for PHP Debug Connections by clicking the above icon in PHPStorm so it turns green
Set a break point in web/index.php
Finally, make sure your Xdebug helper browser extension has the ide key as "PHPSTORM". Note: the above image is from the Xdebug Toggler Safari extension
Refresh http://app.local
and get developing