How does composer handle multiple versions of the same package?

前端 未结 2 1448
鱼传尺愫
鱼传尺愫 2020-12-08 20:33

This may (should) have been asked before somewhere but I can\'t seem to find an answer. If someone provides a link I can delete this post!:

Just trying to get my hea

2条回答
  •  时光说笑
    2020-12-08 21:05

    To question 1

    Yes Composer can only install one version of each extension/package.

    To question 2

    Because of answer 1: Composer would consider your main project and the external package as incompatible.

    In this case you could

    • stay with version 5 at your main project too.
    • ask the external package owner to upgrade to version 6 too if it's compatible to.
    • fork the external package and make it compatible to version 6 yourself

提交回复
热议问题