How to tell and force Composer to use a specific PHP version such as 7.x or 8.x
You can tell Composer to use a specific PHP version by specifying the version in the composer command. For example, to use PHP version 7. (simpleeverydaymom.com) 4: php7.4 /usr/local/bin/composer <composer command> You can also configure Composer to use a specific PHP version by creating a composer.json file in the root of your project and add … Read more