Updated: 17 January 2023
Require a new project as a dependency
docker run --rm \ -v $(pwd):/app \ composer/composer:latest \ require slim/slim "^3.0"
Install all dependencies in a project
docker run --rm --interactive --tty --volume $PWD:/app composer install