Ignore platform requirements with composer

Published on 2021-09-15 • Modified on 2021-09-15

In this snippet, we see how to ignore platform requirements with composer. In a project I maintain, I did an update of a package, and it turns out that it added a dependency to a PHP extension even though it was optional. I wasn't then able to do the update as it wasn't installed. To bypass this problem, one can add an option to ignore the platform requirements. It can also be helpful when you want to use your local composer instead of a dockerized environment because it will be faster, and the final result will be the same.


composer up --ignore-platform-reqs

 More on Stackoverflow   Read the doc  Random snippet

  Work with me!


Call to action

Did you like this post? You can help me back in several ways: (use the "reply" link on the right to comment or to contact me )

Thank you for reading! And see you soon on Strangebuzz! 😉

COil