Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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