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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With