Skip to content

Instantly share code, notes, and snippets.

@TheCodeEngine
Created October 12, 2016 08:45
Show Gist options
  • Save TheCodeEngine/72d590fb8fc4ace51cdc7464a405737f to your computer and use it in GitHub Desktop.
Save TheCodeEngine/72d590fb8fc4ace51cdc7464a405737f to your computer and use it in GitHub Desktop.
PHP 7 - Vagrant Box Script
sudo -s
echo 'deb http://packages.dotdeb.org jessie all' > /etc/apt/sources.list.d/dotdeb.list
curl http://www.dotdeb.org/dotdeb.gpg | apt-key add -
apt-get update
apt-get install git vim zsh php7.0-cli php7.0-xml php7.0-common php7.0-mbstring php7.0-redis php7.0-mongo php7.0-mysql php7.0-xdebug zsh
# Composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
mv composer.phar /usr/bin/composer
php -r "unlink('composer-setup.php');"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment