On my local machine I have MAMP PRO running, which allows the change of PHP version per project independently.
Composer is installed on a specific PHP version, but my project aren't.
How would I use composer so that it will either use the PHP version of the local environment, or so that I can easily tell Composer that I am using PHP "x.x.x".
Thank you in advance!
I believe you're looking for this thing: https://getcomposer.org/doc/06-config.md#platform
{
"config": {
"platform": {
//"php": "/path/to/php or php version"
"php": "7.0.3"
}
}
}