You might use an alias to trick Composer into thinking that v5.3.0 of guzzle is actually v6.0.
Defining "guzzlehttp/guzzle": "~5.3 as 6.0"
will not work, because that's just an invalid string. You have to be specific about the version and insert 5.3.0, like so:
composer.json
{
"require": {
"intervention/image": "^2.3",
"guzzlehttp/guzzle": "5.3.0 as 6.0"
}
}
You could also update your code to work with guzzlehttp/guzzle
v6, but that's probably more work than changing few chars in composer.json. ,)
It's a trick but it won't work. You can have a look at @Sven answer.
Its pretty obvious that you didn't test what i posted. Aliasing a version is one way to get it done. Its not the holy grail of fixing all dependency issues. Its a simple method to resolve a version clash.
[50.2MB/9.02s] - Installing react/promise (v2.2.1)
[50.6MB/9.07s] Reading C:/Users/koch/AppData/Local/Composer/files/react/promise/3b6fca09c7d56321057fa8867c8dbe1abf648627.zip from cache
[50.6MB/9.08s] Loading from cache
[50.6MB/9.08s] Extracting archive
[50.7MB/9.47s]
[50.7MB/9.48s] REASON: guzzlehttp/ringphp 1.1.0 requires react/promise ~2.0 -> satisfiable by react/promise[v2.0.0, v2.1.0, v2.2.0, v2.2.1].
[50.7MB/9.48s]
[50.7MB/9.49s] - Installing guzzlehttp/streams (3.0.0)
[50.7MB/9.53s] Reading C:/Users/koch/AppData/Local/Composer/files/guzzlehttp/streams/47aaa48e27dae43d39fc1cea0ccf0d84ac1a2ba5.zip from cache
[50.7MB/9.54s] Loading from cache
[50.7MB/9.54s] Extracting archive
[50.7MB/9.92s]
[50.7MB/9.93s] REASON: guzzlehttp/ringphp 1.1.0 requires guzzlehttp/streams ~3.0 -> satisfiable by guzzlehttp/streams[3.0.0].
[50.7MB/9.93s]
[50.7MB/9.94s] - Installing guzzlehttp/ringphp (1.1.0)
[50.7MB/10.01s] Reading C:/Users/koch/AppData/Local/Composer/files/guzzlehttp/ringphp/dbbb91d7f6c191e5e405e900e3102ac7f261bc0b.zip from cache
[50.7MB/10.02s] Loading from cache
[50.7MB/10.02s] Extracting archive
[50.7MB/10.41s]
[50.7MB/10.41s] REASON: guzzlehttp/guzzle 5.3.0 requires guzzlehttp/ringphp ^1.1 -> satisfiable by guzzlehttp/ringphp[1.1.0].
[50.7MB/10.41s]
[50.7MB/10.43s] - Installing guzzlehttp/guzzle (5.3.0)
[50.7MB/10.49s] Reading C:/Users/koch/AppData/Local/Composer/files/guzzlehttp/guzzle/f3c8c22471cb55475105c14769644a49c3262b93.zip from cache
[50.7MB/10.51s] Loading from cache
[50.7MB/10.51s] Extracting archive
[50.7MB/11.66s]
[50.7MB/11.66s] REASON: Required by root: Install command rule (install guzzlehttp/guzzle 5.3.0)
[50.7MB/11.66s]
[50.7MB/11.69s] - Installing psr/http-message (1.0)
[50.7MB/11.77s] Reading C:/Users/koch/AppData/Local/Composer/files/psr/http-message/85d63699f0dbedb190bbd4b0d2b9dc707ea4c298.zip from cache
[50.7MB/11.78s] Loading from cache
[50.7MB/11.78s] Extracting archive
[50.7MB/11.91s]
[50.7MB/11.91s] REASON: guzzlehttp/psr7 1.2.0 requires psr/http-message ~1.0 -> satisfiable by psr/http-message[1.0].
[50.7MB/11.91s]
[50.7MB/11.94s] - Installing guzzlehttp/psr7 (1.2.0)
[50.7MB/11.98s] Reading C:/Users/koch/AppData/Local/Composer/files/guzzlehttp/psr7/4ef919b0cf3b1989523138b60163bbcb7ba1ff7e.zip from cache
[50.7MB/11.98s] Loading from cache
[50.7MB/11.98s] Extracting archive
[50.7MB/12.61s]
[50.7MB/12.61s] REASON: intervention/image 2.3.2 requires guzzlehttp/psr7 ~1.1 -> satisfiable by guzzlehttp/psr7[1.1.0, 1.2.0].
[50.7MB/12.61s]
[50.7MB/12.64s] - Installing intervention/image (2.3.2)
[50.7MB/12.73s] Reading C:/Users/koch/AppData/Local/Composer/files/intervention/image/1124ff3c6298f0dcf9edf9156623904d7a5c3428.zip from cache
[50.7MB/12.74s] Loading from cache
[50.7MB/12.74s] Extracting archive
[50.7MB/14.72s]
[50.7MB/14.72s] REASON: Required by root: Install command rule (install intervention/image 2.3.0|install intervention/image 2.3.1|install intervention/image 2.3.2)
[50.7MB/14.72s]
[50.3MB/15.09s] intervention/image suggests installing ext-gd (to use GD library based image processing.)
[50.3MB/15.10s] intervention/image suggests installing ext-imagick (to use Imagick based image processing.)
[50.3MB/15.11s] intervention/image suggests installing intervention/imagecache (Caching extension for the Intervention Image library)
[50.4MB/15.17s] Writing lock file