A
A
axblue2017-01-30 19:00:41
Composer
axblue, 2017-01-30 19:00:41

How to work with composer?

Hello. Help with composer. The bottom line is this, put the packages, all the rules, nothing clashed. Today it was necessary to install another package and it needs the following dependencies:

"illuminate/http": "~5.4",
"illuminate/support": "~5.4"

I put them in composer.json and when composer update it swears (conflict) that for another "illuminate / http" dependency: version less than 5.4 is needed. How to be here? I put laravel/socialite v3.0.0
That is, how to solve the problem with the conflict of versions of dependencies.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Plisko, 2017-01-30
@leshikgo

Why did you include them in your composer.json. The point is that the dependencies are resolved recursively and you only need to specify your package and its version, and then all the necessary dependencies and the necessary versions of these dependencies will be calculated for you.
But in any case, since you have a problem in another package that needs a version less than 5.4, then it makes sense to write about it and its version, it is possible to specify a more recent version that is compatible with 5.4
>>laravel/socialite v3.0.0
this package is rotten, the current version is 3.0.2, be careful in prescribing versions, deal with markings, tildes and wildcards so as not to suffer later. Unfortunately, in many packages, the authors did not get confused by this and produce conflicts out of the blue. In this case, it is easier to fork and fix the versions, send a pull request to the author.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question