#! /bin/bash
# Install applications and files to Raspberry Pi that are needed for PHPBridge

$packages = [
    aptitude
	tightvncserver
	gedit
	gedit-source-code-browser-plugin
	git
	apache2
	php5
	php5-cli
	php5-xdebug
	mysql-client
	mysql-server
]

for package in $packages; do
	sudo apti-get install $package

# Install PHP Composer
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer

# Install and configure psysh
composer g require psy/psysh:~0.1

echo <<-PSYSH_PATH
     # set PATH so it recognizes executables installed via Composer
     if [ -d "$HOME/.composer/vendor/bin" ] ; then
         PATH="$HOME/.composer/vendor/bin:$PATH"
     fi
PSYSH_PATH
>> ~/.profile

#! /bin/bash
# Install applications and files to Raspberry Pi that are needed for PHPBridge

$packages = [
    aptitude
	tightvncserver
	gedit
	gedit-source-code-browser-plugin
	git
	apache2
	php5
	php5-cli
	php5-xdebug
	mysql-client
	mysql-server
]

for package in $packages; do
	sudo apti-get install $package -y

# Install PHP Composer
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer

# Install and configure psysh
composer g require psy/psysh:~0.1

echo <<-PSYSH_PATH
     # set PATH so it recognizes executables installed via Composer
     if [ -d "$HOME/.composer/vendor/bin" ] ; then
         PATH="$HOME/.composer/vendor/bin:$PATH"
     fi
PSYSH_PATH
>> ~/.profile

Make all apt-get installs automatically install.`
Make all apt-get installs automatically install.`
