It may (should) ask somewhere, but I cannot find the answer. If someone provides a link, I can delete this post !:
Just trying to plunge into some composer (perhaps applies to other package managers).
Basically, I just want to know what the composer does in the following scenarios:
one.
My main project has a dependency:
"guzzlehttp/guzzle": "5.0.*",
My external package has a dependency on
"guzzlehttp/guzzle": "5.0.*",
Does composer create guzzlehttp / guzzle once because he knows that he needs it only once?
2. The same scenario, but in the future, if someone updates the main project:
"guzzlehttp/guzzle": "6.0.*",
Now the composer will install 2 versions of guzzle (5 and 6) (I suppose this is what it should do), or will it accept the highest version (i.e. 6)? Also, if there are 2 versions, will this cause conflicts because the namespaces can be the same?
thanks
symfony composer-php
timhc22
source share