Is it possible to specify the path to the composer.json
file using the cli commands? Even better, is it possible to user a file with a different name?
I would suggest you take a look at this: https://getcomposer.org/doc/03-cli.md#environment-variables
COMPOSER
By setting the
COMPOSER
env variable it is possible to set the filename ofcomposer.json
to something else.For example:
COMPOSER=composer-other.json php composer.phar install
The generated lock file will use the same name:
composer-other.lock
in this example.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.