When installing a composer package (eg. composer require foo/bar), how to save exact package version (eg. 1.0.0) in composer.json by default instead of a version range (^1.0)?
Eg. NPM has this functionality when using the --save-exact flag, eg. npm i --save-exact react, and it can also be set in config so it's the default. Does composer have a similar flag or config setting?
I do not want to manually specify package version on the CLI.