Made php optional

Made php optional by checking if php is installed when installing apache or nginx. Also removed some Trailingspace and empty comment lines from php.sh and Vagrantfile.
Added a PHP check before installing certain scripts
Added composer check for Laravel and Symfony script