On my local machine, I have php v7.0.3. My project has a dependency on php v5.5.
So, as expected, the simple execution of composer install crashes:
Your requirements could not be resolved to an installable set of packages. Problem 1 - This package requires php ~5.5 but your PHP version (7.0.3) does not satisfy that requirement.
I know that I can ignore the platform through:
composer install
but I often forget to add a flag. However, since the application runs inside the docker container, non-matching php can install dependencies just as well.
So I'm wondering if there is a way to make my local composer always assume --ignore-platform-reqs so as not to type it.
I like to avoid setting an alias and working with it at the composer configuration level.
source share