Composer install - ignore php version constrains
December 11, 2023
Just run this:
composer install --ignore-platform-req=php
I often have an issue when after upgrading PHP to a newer versions I can’t do
anymore because one or more libraries haven’t updated their
require.php section to support
newer version of the language.
Moreover, even if you manage to install new versions of those libs you still may have other projects on your machine that require older version of php (my case).
I also prefer to have programming languages installed on my machine directly without any docker stuff that would potentially solve this issue. Also I’m not aware of any solutions like NVM or RVM for PHP.
Found this info in this post. Check it out for some more tips.
Feel free to contact me for feedback or questions. Find my contacts on About page.