install guzzle in laravel 5.4 - installation

Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/socialite v2.0.0 requires guzzlehttp/guzzle ~4.0 -> satisfiable by guzzlehttp/guzzle[4.0.0, 4.0.0-rc.1, 4.0.0-rc.2, 4.0.1, 4.0.2, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.1.7, 4.1.8, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.2.4, 4.x-dev] but these conflict with your requirements or minimum-stability.
- laravel/socialite v2.0.0 requires guzzlehttp/guzzle ~4.0 -> satisfiable by guzzlehttp/guzzle[4.0.0, 4.0.0-rc.1, 4.0.0-rc.2, 4.0.1, 4.0.2, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.1.7, 4.1.8, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.2.4, 4.x-dev] but these conflict with your requirements or minimum-stability.
- laravel/socialite v2.0.0 requires guzzlehttp/guzzle ~4.0 -> satisfiable by guzzlehttp/guzzle[4.0.0, 4.0.0-rc.1, 4.0.0-rc.2, 4.0.1, 4.0.2, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.1.7, 4.1.8, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.2.4, 4.x-dev] but these conflict with your requirements or minimum-stability.
- Installation request for laravel/socialite 2.0 -> satisfiable by laravel/socialite[v2.0.0].
Installation failed, reverting ./composer.json to its original content.
"laravel/framework": "5.4.*",
"laravel/socialite": "2.0",

I use bellow code in composer.json and it works.
"guzzlehttp/guzzle": "^4.2.4",
then comoser update

Related

I cant install Video thumbnail in my laravel project

I want to install ffmpeg on my laravel project but I am getting this errors.
Problem 1
- Conclusion: remove evenement/evenement v2.1.0
- Conclusion: don't install evenement/evenement v2.1.0
- php-ffmpeg/php-ffmpeg 0.5.0 requires evenement/evenement ~1.0 -> satisfiable by evenement/evenement[1.0.x-dev, v1.0.0, v1.1.0].
- php-ffmpeg/php-ffmpeg 0.5.1 requires evenement/evenement ~1.0 -> satisfiable by evenement/evenement[1.0.x-dev, v1.0.0, v1.1.0].
- php-ffmpeg/php-ffmpeg 0.6.0 requires evenement/evenement ~1.0 -> satisfiable by evenement/evenement[1.0.x-dev, v1.0.0, v1.1.0].
- alchemy/binary-driver 1.5.0 requires evenement/evenement ~1.0 -> satisfiable by evenement/evenement[1.0.x-dev, v1.0.0, v1.1.0].
- Can only install one of: evenement/evenement[1.0.x-dev, v2.1.0].
- Can only install one of: evenement/evenement[v1.0.0, v2.1.0].
- Can only install one of: evenement/evenement[v1.1.0, v2.1.0].
- Installation request for evenement/evenement (locked at v2.1.0) -> satisfiable by evenement/evenement[v2.1.0].
- Installation request for pawlox/video-thumbnail ^1.0 -> satisfiable by pawlox/video-thumbnail[v1.0.3].
- Conclusion: don't install monolog/monolog 2.0.0|install php-ffmpeg/php-ffmpeg 0.5.0|install php-ffmpeg/php-ffmpeg 0.5.1|install php-ffmpeg/php-ffmpeg 0.6.0|install alchemy/binary-driver 1.5.0
- Conclusion: remove monolog/monolog 2.0.0|install php-ffmpeg/php-ffmpeg 0.5.0|install php-ffmpeg/php-ffmpeg 0.5.1|install php-ffmpeg/php-ffmpeg 0.6.0|install alchemy/binary-driver 1.5.0
- pawlox/video-thumbnail v1.0.3 requires php-ffmpeg/php-ffmpeg ~0.5 -> satisfiable by php-ffmpeg/php-ffmpeg[0.5.0, 0.5.1, 0.6.0, 0.6.1, 0.7.0, 0.8.0, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.7.x-dev, v0.10.0, v0.11.0, v0.11.1, v0.11.1-pl-1, v0.12, v0.13, v0.14].
- php-ffmpeg/php-ffmpeg v0.14 requires alchemy/binary-driver ^1.5 || ~2.0.0 || ^5.0 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0, 5.0.0, 5.1.0, v2.0.0].
- php-ffmpeg/php-ffmpeg v0.13 requires alchemy/binary-driver ^1.5 || ~2.0.0 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0, v2.0.0].
- php-ffmpeg/php-ffmpeg v0.12 requires alchemy/binary-driver ^1.5 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0].
- php-ffmpeg/php-ffmpeg v0.11.1-pl-1 requires alchemy/binary-driver ^1.5 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0].
- php-ffmpeg/php-ffmpeg v0.11.1 requires alchemy/binary-driver ^1.5 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0].
- php-ffmpeg/php-ffmpeg v0.11.0 requires alchemy/binary-driver ^1.5 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0].
- php-ffmpeg/php-ffmpeg v0.10.0 requires alchemy/binary-driver ^1.5 -> satisfiable by alchemy/binary-driver[1.5.0, 1.6.0].
- alchemy/binary-driver 5.1.0 requires monolog/monolog ^1.3 -> satisfiable by monolog/monolog[1.10.0, 1.11.0, 1.12.0, 1.13.0, 1.13.1, 1.14.0, 1.15.0, 1.16.0, 1.17.0, 1.17.1, 1.17.2, 1.18.0, 1.18.1, 1.18.2, 1.19.0, 1.20.0, 1.21.0, 1.22.0, 1.22.1, 1.23.0, 1.24.0,
1.25.0, 1.25.1, 1.25.2, 1.25.3, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.9.0, 1.9.1, 1.x-dev].
- alchemy/binary-driver v2.0.0 requires monolog/monolog ^1.3 -> satisfiable by monolog/monolog[1.10.0, 1.11.0, 1.12.0, 1.13.0, 1.13.1, 1.14.0, 1.15.0, 1.16.0, 1.17.0, 1.17.1, 1.17.2, 1.18.0, 1.18.1, 1.18.2, 1.19.0, 1.20.0, 1.21.0, 1.22.0, 1.22.1, 1.23.0, 1.24.0, 1.25.0,
1.25.1, 1.25.2, 1.25.3, 1.3.0, 1.3.1, 1.4.0, 1.4.1, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.9.0, 1.9.1, 1.x-dev].
- Can only install one of: monolog/monolog[1.25.3, 2.0.0].
- Can only install one of: monolog/monolog[1.x-dev, 2.0.0].
- Can only install one of: monolog/monolog[1.10.0, 2.0.0].
- Can only install one of: monolog/monolog[1.11.0, 2.0.0].
- Can only install one of: monolog/monolog[1.3.0, 2.0.0].
- Can only install one of: monolog/monolog[1.3.1, 2.0.0].
- Can only install one of: monolog/monolog[1.4.0, 2.0.0].
- Can only install one of: monolog/monolog[1.4.1, 2.0.0].
- Can only install one of: monolog/monolog[1.5.0, 2.0.0].
- Can only install one of: monolog/monolog[1.6.0, 2.0.0].
- Can only install one of: monolog/monolog[1.7.0, 2.0.0].
- Can only install one of: monolog/monolog[1.8.0, 2.0.0].
- Can only install one of: monolog/monolog[1.9.0, 2.0.0].
- Can only install one of: monolog/monolog[1.9.1, 2.0.0].
- Installation request for monolog/monolog (locked at 2.0.0) -> satisfiable by monolog/monolog[2.0.0].
I am using laravel 6.4.1
I have researched on the solution but I could not get any.
I don't know that the problem could be.
What could be the solution. thanks
Try this:
Add to your composer.json:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/PHP-FFMpeg/BinaryDriver.git"
}
],
Install the binary-driver ffmpeg dependency:
run composer require php-ffmpeg/binary-driver=dev-master
Install php-ffm:
composer require php-ffmpeg/php-ffm

Composer require dependencies and version issue. Is it possible to force or change satisfiable version requirements?

I am currently working in Laravel 5.6.
I am trying to use the Corcel composer package.
It looks like I already have a version of the hautelook/phpass installed and locked at 0.3.5. Corcel seams to want 0.3.4. Is there a way to force Corcel ge to use 0.3.5 so I don't have to play with my lock?
From my terminal:
$ composer require jgrossi/corcel Using version ^2.6 for
jgrossi/corcel ./composer.json has been updated Loading composer
repositories with package information Updating dependencies (including
require-dev) Your requirements could not be resolved to an installable
set of packages.
Problem 1
Installation request for hautelook/phpass (locked at 0.3.5) -> satisfiable by hautelook/phpass[0.3.5].
jgrossi/corcel 2.6.x-dev requires hautelook/phpass 0.3.4 -> satisfiable by hautelook/phpass[0.3.4].
jgrossi/corcel v2.6.0 requires hautelook/phpass 0.3.4 -> satisfiable by hautelook/phpass[0.3.4].
jgrossi/corcel v2.6.1 requires hautelook/phpass 0.3.4 -> satisfiable by hautelook/phpass[0.3.4].
jgrossi/corcel v2.6.2 requires hautelook/phpass 0.3.4 -> satisfiable by hautelook/phpass[0.3.4].
Conclusion: don't install hautelook/phpass 0.3.4
Installation request for jgrossi/corcel ^2.6 -> satisfiable by jgrossi/corcel[2.6.x-dev, v2.6.0, v2.6.1, v2.6.2].
Installation failed, reverting ./composer.json to its original content.
Update:
moving forward when I run into version issues in a composer package I typically fork the repo, make my edits and use my repo in place until the original developer gets a chance to update.
Jeffery Way has a great tutorial on it here
[https://laracasts.com/series/whats-new-in-laravel-8/episodes/11][1]
[1]: https://laracasts.com/series/whats-new-in-laravel-8/episodes/11

composer update returns requirements could not be resolved

$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- jenssegers/mongodb v3.3.1 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.2.0, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2].
- jenssegers/mongodb v3.3.0 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.2.0, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2].
- jenssegers/mongodb v3.3.1 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.2.0, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1, 1.1.2].
- mongodb/mongodb 1.2.0 requires ext-mongodb ^1.3.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.1.2 requires ext-mongodb ^1.2.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.1.1 requires ext-mongodb ^1.2.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.1.0 requires ext-mongodb ^1.2.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.0.5 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.0.4 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.0.3 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.0.2 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.0.1 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.0.0 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.2.0 requires ext-mongodb ^1.3.0 -> the requested PHP extension mongodb is missing from your system.
- Installation request for jenssegers/mongodb ^3.3 -> satisfiable by jenssegers/mongodb[v3.3.0, v3.3.1].
To enable extensions, verify that they are enabled in your .ini files:
- /usr/local/etc/php/7.1/php.ini
- /usr/local/etc/php/7.1/conf.d/php-memory-limits.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
The problem is, that the mongodb extension is not installed our outdated.
Check the documentation to install mongodb for your operating system: https://secure.php.net/manual/en/mongodb.setup.php
and make sure the extension is enabled in your php.ini by checking for:
extension=mongodb.so
If the system you are using is different from where the code will run and that is why you don't have the extension installed you can also choose to ignore the platform requirements.

Why does Composer say "Conclusion: don't install" when (seemingly) no obstacles are present?

The following composer.json:
{
"type": "project",
"minimum-stability": "dev",
"require": {
"jasny/bootstrap": ">=3.1.3",
"2amigos/yii2-file-input-widget": "*"
}
}
leads to the following output of composer update:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- 2amigos/yii2-file-input-widget 0.1.2 requires jasny/bootstrap v3.1.0 -> satisfiable by jasny/bootstrap[v3.1.0] but these conflict with your requirements or minimum-stability.
- 2amigos/yii2-file-input-widget 0.1.1 requires jasny/bootstrap v3.1.0 -> satisfiable by jasny/bootstrap[v3.1.0] but these conflict with your requirements or minimum-stability.
- 2amigos/yii2-file-input-widget 0.1.0 requires jasny/bootstrap v3.1.0 -> satisfiable by jasny/bootstrap[v3.1.0] but these conflict with your requirements or minimum-stability.
- 2amigos/yii2-file-input-widget 1.0.0 requires jasny/bootstrap ~3.1.0 -> satisfiable by jasny/bootstrap[v3.1.3].
- 2amigos/yii2-file-input-widget 1.0.1 requires jasny/bootstrap ~3.1.0 -> satisfiable by jasny/bootstrap[v3.1.3].
- 2amigos/yii2-file-input-widget 1.0.2 requires jasny/bootstrap ~3.1.0 -> satisfiable by jasny/bootstrap[v3.1.3].
- 2amigos/yii2-file-input-widget dev-master requires jasny/bootstrap ~3.1.0 -> satisfiable by jasny/bootstrap[v3.1.3].
- 2amigos/yii2-file-input-widget 1.0.x-dev requires jasny/bootstrap ~3.1.0 -> satisfiable by jasny/bootstrap[v3.1.3].
- Conclusion: don't install jasny/bootstrap v3.1.3
- Installation request for 2amigos/yii2-file-input-widget * -> satisfiable by 2amigos/yii2-file-input-widget[0.1.0, 0.1.1, 0.1.2, 1.0.0, 1.0.1, 1.0.2, dev-master, 1.0.x-dev].
Why?
Ok, I understand, why versions 0.1.0–0.1.2 of 2amigos/yii2-file-input-widget can't be installed — because they require jasny/bootstrap of exact version 3.1.0, which conflicts with >=3.1.3 requirement in composer.json (and therefore composer clarifies: but these conflict with your requirements or minimum-stability).
But, from common-sense view, composer can install version 1.0.0 or later of 2amigos/yii2-file-input-widget (which requires jasny/bootstrap of version ~3.1.0, which is satisfiable by 3.1.3). Neither I see any obstacles for installing 2amigos/yii2-file-input-widget 1.0.0+ together with jasny/bootstrap 3.1.3, nor composer writes any explicit clarification about it. Still it says: Conclusion: don't install jasny/bootstrap v3.1.3 — why?
Workaround 1
It seems it works with "prefer-stable": true.
Workaround 2
I actually found the other workaround some time ago: I replace "2amigos/yii2-file-input-widget": "*" with "2amigos/yii2-file-input-widget": "1.0.2", do composer update and then replace it back and do composer update again — and it works.
The question is why it works in so strange way: why it works with more restrictions, but fails with less restrictions (with no clarification). E.g. if it works with 1.0.2 (or with prefer-stable) works — then why it doesn't with * (or without prefer-stable)?
Change the order and it should work, e.g.
{
"minimum-stability": "dev",
"require": {
"2amigos/yii2-file-input-widget": "*",
"jasny/bootstrap": ">=3.1.3"
}
}
Why? I don't know. Most likely a Composer's bug.
I've tested two configurations with different order on the empty folder using composer install command (Composer v1.6.3), the original order fails, however the order above works. I've reported the issue at GH-7215.
The problem might well be that you are manually editing composer.json and then running
$ composer update
Instead, revert the changes to composer.json and then run:
$ composer require jasny/bootstrap:>=3.1.3
$ composer require "2amigos/yii2-file-input-widget:*"
or in one go:
$ composer require jasny/bootstrap:>=3.1.3 "2amigos/yii2-file-input-widget:*"
Note I recommend to avoid the * wildcard as version constraint because it could pull in any version of that dependency, and potentially break your application by pulling in a version that is not compatible with it.
For reference, see:
http://semver.org

Socialite installation error Laravel

I have installed socialite before but haven't experienced this type of error. All of a sudden this error pops up.
What is the problem that caused these errors?
c:\xampp\htdocs\laravel-projects\chats>composer require laravel/socialite
Using version ^2.0 for laravel/socialite
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/socialite v2.0.0 requires league/oauth1-client ~1.0 -> satisfiable
by league/oauth1-client[1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.4.0,
1.5.0, 1.5.1, 1.6.0, 1.6.1]
- laravel/socialite v2.0.3 requires league/oauth1-client ~1.0 -> satisfiable
- laravel/socialite v2.0.7 requires league/oauth1-client ~1.0 -> satisfiable
by league/oauth1-client[1.0.0, 1.0.1, 1.0.2, 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.4.0,
1.5.0, 1.5.1, 1.6.0, 1.6.1].
- league/oauth1-client 1.0.0 requires guzzle/guzzle 3.* -> satisfiable by gu
- league/oauth1-client 1.0.1 requires guzzle/guzzle 3.* -> satisfiable by gu
zzle/guzzle[v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.1
.0, v3.1.1, v3.1.2, v3.2.0, v3.3.0, v3.3.1, v3.4.0, v3.4.1, v3.4.2, v3.4.3, v3.5
.0, v3.6.0, v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9
.1, v3.9.2, v3.9.3].
- league/oauth1-client 1.5.1 requires guzzle/guzzle 3.* -> satisfiable by gu
zzle/guzzle[v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.1
.0, v3.1.1, v3.1.2, v3.2.0, v3.3.0, v3.3.1, v3.4.0, v3.4.1, v3.4.2, v3.4.3, v3.5
.0, v3.6.0, v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1, v3.9.0, v3.9
.1, v3.9.2, v3.9.3].
- guzzle/guzzle v3.9.3 requires ext-curl * -> the requested PHP extension cu
rl is missing from your system.
- guzzle/guzzle v3.3.0 requires ext-curl * -> the requested PHP extension cu
socialite[v2.0.0, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15,
v2.0.16, v2.0.17, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9
].
To enable extensions, verify that they are enabled in those .ini files:
- C:\xampp\php\php.ini
You can also run `php --ini` inside terminal to see which files are used by PH
P in CLI mode.
Installation failed, deleting ./composer.json.
I have removed many repeating errors with different version since the error code was very big.
Run composer install or composer update first. Then try running composer require laravel/socialite.
And you have not installed curl, install it first.
I solved it by enabling the curl in Php.ini file and install socialite as usual and it worked

Resources