Skip to content

Instantly share code, notes, and snippets.

@icanhazstring
Created September 6, 2017 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icanhazstring/13860205cd60526e129413fa70348e8d to your computer and use it in GitHub Desktop.
Save icanhazstring/13860205cd60526e129413fa70348e8d to your computer and use it in GitHub Desktop.
Simple Vagrantconfig PHP7.1 + composer
Vagrant.configure("2") do |config|
config.vm.box = "puphpet/ubuntu1604-x64"
config.vm.provision "shell", inline: <<-SHELL
add-apt-repository ppa:ondrej/php
apt-get update
apt-get install -y php7.1 php7.1-xml php7.1-mbstring php7.1-zip php7.1-curl php7.1-xdebug composer
# Switch to /vagrant and install packages
cd /vagrant && composer install
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment