Got the solution on Github. Custom composer.json can be specified in the COMPOSER env var. https://getcomposer.org/doc/03-cli.md#composer
Composer - use different composer.json files
Hey,
is there a way to use another composer file, for example composer.dev.json?
The reason: I build an app based on lumen. And for this app I will create some packages. This packages are in the vendor folder so I can use it in my Lumen app. So for local development I can't require a version of these packages in my composer.json because they aren't online yet. But when I publish the packages and the main application I need the require entry in the composer.json.
Yes I can edit the composer.json before a push but that is crap in my mind. Having an extra composer.json file for local development sounds better.
Is there a way to do this? Can't find one.
Please or to participate in this conversation.