A nice simple shell script for create a quick framework based project. Currently only supports Laravel, but will adapt with Silex another time
#!/bin/bash
function install_laravel() {
echo "Installing Laravel into '$project_name'..."
wget https://github.com/laravel/laravel/archive/master.zip ./
unzip ./master.zip
rm -rf ./master.zip*
rm -rf ./$project_name/public
rm -rf ./laravel-master/.git* ./laravel-master/CONTRIBUTING.md ./laravel-master/readme.md
mv ./laravel-master/public ./$project_name/
mv -f ./laravel-master/* ./$project_name/
rm -rf ./laravel-master
cd ./$project_name
composer install
return 1
}
echo "Project Name:"
read project_name
git clone https://github.com/jamiefdhurst/vagrant-dev.git $project_name
rm -rf ./$project_name/.git* ./$project_name/README.md
while true; do
read -p "Software Stack: Laravel[L]:" software
case $software in
[Ll]* ) install_laravel $project_name; break;;
* ) echo "Invalid software stack.";;
esac
done