Quantcast
Channel: nixCraft
Viewing all articles
Browse latest Browse all 308

How to tell and force Composer to use a specific PHP version such as 7.x or 8.xnixCraft

$
0
0
See all UNIX related articles/faq

I have multiple versions of PHP installed on my development VM. I am migrating all my projects from PHP 7.x to 8.x and testing it. However, this leads to specific problems. For example, my production Linux container is on PHP 7.4.26, while the development VM is on PHP 8.1. So they don't match and causes problem even in the dev environment because I have 7.x and 8.x. Here is how to tell the composer to use different PHP versions per project requirements.

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post How to tell and force Composer to use a specific PHP version such as 7.x or 8.x appeared first on nixCraft.


Viewing all articles
Browse latest Browse all 308

Trending Articles