Skip to content

Simple working vagrant box with auto-updating host (projectname.local) and xdebug configured

Notifications You must be signed in to change notification settings

J7mbo/vagrant-php-7.1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant PHP 7.1

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.

Versions

  • PHP 7.1 with Xdebug 2.5
  • Apache 2.4
  • Composer (latest)

Basic Usage

  • 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 your phpinfo()

Here's what http://app.local looks like right after vagrant up finishes

Xdebug Usage

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

About

Simple working vagrant box with auto-updating host (projectname.local) and xdebug configured

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published