Composer: how can I install another dependency without updating old ones?

后端 未结 4 1203
自闭症患者
自闭症患者 2020-12-12 09:50

I have a project with a few dependencies and I\'d like to install another one, but I\'d like to keep the others the way they are. So I\'ve edited the composer.json

4条回答
  •  孤街浪徒
    2020-12-12 10:10

    My use case is simpler, and fits simply your title but not your further detail.

    That is, I want to install a new package which is not yet in my composer.json without updating all the other packages.

    The solution here is composer require x/y

提交回复
热议问题