Docker image for Laravel Installer. Create Laravel projects without local PHP or Composer installation.
# Using latest Laravel installer version
docker run --rm -v $PWD:/opt pickleboxer/laravel-installer new PROJECT_NAME
# Using specific Laravel installer version
docker run --rm -v $PWD:/opt pickleboxer/laravel-installer:5.22.0 new PROJECT_NAME# Using latest Laravel installer version
docker run --rm -v ${PWD}:/opt pickleboxer/laravel-installer new PROJECT_NAME
# Using specific Laravel installer version
docker run --rm -v ${PWD}:/opt pickleboxer/laravel-installer:5.22.0 new PROJECT_NAMERun without project name to get interactive prompts for starter kits, testing frameworks, and more:
Linux / macOS / Git Bash:
docker run --rm -it -v $PWD:/opt pickleboxer/laravel-installer newPowerShell / Windows:
docker run --rm -it -v ${PWD}:/opt pickleboxer/laravel-installer newThe installer will ask you:
- Project name
- Starter kit (Breeze, Jetstream, or none)
- Testing framework (Pest or PHPUnit)
- Database configuration
- Git repository initialization
Linux / macOS / Git Bash:
docker run --rm -v $PWD:/opt pickleboxer/laravel-installer new blogPowerShell / Windows:
docker run --rm -v ${PWD}:/opt pickleboxer/laravel-installer new blogdocker run --rm -it \
-v $PWD:/opt \
-u $(id -u):$(id -g) \
pickleboxer/laravel-installer newLinux / macOS / Git Bash:
docker run --rm -it -v $PWD:/opt pickleboxer/laravel-installer:5.21.0 newPowerShell / Windows:
docker run --rm -it -v ${PWD}:/opt pickleboxer/laravel-installer:5.21.0 newThis repository automatically maintains Docker images for the last 5 stable Laravel Installer versions:
latest- Latest Laravel Installer version (currently 5.23.1)5.23.1- Laravel Installer v5.23.15.22.0- Laravel Installer v5.22.05.21.0- Laravel Installer v5.21.05.20.0- Laravel Installer v5.20.05.19.0- Laravel Installer v5.19.0
Note: Images are automatically built weekly to track new Laravel Installer releases.
Images are tagged with Laravel Installer version numbers (e.g., 5.23.1), following the official laravel/installer package versions.
# Build with latest version
./build.sh
# Build with specific version
./build.sh --version 5.22.0
# Build with custom Docker Hub username
./build.sh --version 5.22.0 --username yourusername# Build with latest version
.\build.ps1
# Build with specific version
.\build.ps1 -Version 5.22.0
# Build with custom username
.\build.ps1 -Version 5.22.0 -DockerHubUsername yourusername- Base image: Official Composer 2.x image
- Laravel Installer: Installed globally via Composer
- Entrypoint:
laravelcommand - Working directory:
/opt(mount your project directory here)
- Weekly checks: Automatically detects new Laravel Installer releases every Sunday
- Version tracking: Maintains
versions.jsonwith the last 5 stable versions - Auto-build: Builds and pushes all tracked versions when updates are detected
- Smoke testing: Each image is tested before being pushed to Docker Hub
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open-source software licensed under the MIT license.