This is a Dagger module to handling installing dependencies in a PHP project with Composer.
To manage dependencies in the current working directory:
dagger call -m github.com/jasonmccallister/dagger-composer install export --path vendor
To provide a specific directory (default is the current directory) that contains the composer.lock
and composer.json
files:
dagger call -m github.com/jasonmccallister/dagger-composer install --dir ./path/to/directory export --path vendor
To use a specific version of composer (default is latest
) use the --version
flag.
dagger call -m github.com/jasonmccallister/dagger-composer --version 2.2 install export --path vendor