This Bash script simplifies the process of creating a new Laravel 12 project using DDEV—a local development environment tool for PHP projects. It handles all the necessary configuration and setup steps, so you can start developing your Laravel application in minutes.
DDEV installed and configured.
- Make a installer
- Let it work on Linux
- Let it work on Windows (have no windows pc anymore)
- Add feature to switch database (Mysql/Sqlite/Postgress)
- Add option for FrankenPHP Let me know if you want anything added
mkdir -p ~/.local/bin
Then add it to bash file
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
And reload the variables of the terminal
source ~/.bashrc
curl -fsSL https://raw.githubusercontent.com/jorisros/ddev-laravel-setup/main/setup-laravel.sh -o ~/.local/bin/ddev-laravel && chmod +x ~/.local/bin/ddev-laravel
Then can you run the creation of new projects script
ddev-laravel project-name
git clone git@github.com:jorisros/ddev-laravel-setup.git
cd ddev-laravel-setup
chmod +x setup-laravel.sh
./setpu-laravel.sh