jwt-auth in not installing for laravel (6.0.3) - php

I im trying to install jwt-auth for laravel (6.0.3) but the composer giving me this error Installation request for laravel/framework (locked at v6.0.3, required as ^6.0) -> satisfiable by laravel/framework[v6.0.3].

The new version JWT package was tagged for laravel 6!
composer require tymon/jwt-auth:1.0.0-rc.5

Try this
composer require tymon/jwt-auth 1.0.x-dev
Refer this link https://github.com/tymondesigns/jwt-auth/issues/1860

Related

composer require findbrok/php-watson-api-bridge giving these error how to solve this my laravel is 8

I am trying to create a bridge with laravel 8 and watson api but i am getting the follwoing error can some please help me here
composer require findbrok/php-watson-api-bridge
Using version ^1.1 for findbrok/php-watson-api-bridge
./composer.json has been updated
Running composer update findbrok/php-watson-api-bridge
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- findbrok/php-watson-api-bridge 1.1.x-dev requires illuminate/support ~5.0 -> found illuminate/support[v5.0.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
- findbrok/php-watson-api-bridge[dev-master, v1.1.0, ..., v1.1.2] require guzzlehttp/guzzle 6.2.* -> found guzzlehttp/guzzle[6.2.0, 6.2.1, 6.2.2, 6.2.3] but it conflicts with your root composer.json require (^7.0.1).
- findbrok/php-watson-api-bridge 1.2.x-dev is an alias of findbrok/php-watson-api-bridge dev-master and thus requires it to be installed too.
- Root composer.json requires findbrok/php-watson-api-bridge ^1.1 -> satisfiable by findbrok/php-watson-api-bridge[v1.1.0, ..., 1.2.x-dev (alias of dev-master)].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to
specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.```
It appears that the package is old and no longer maintained.
The problem is Laravel 8 installs Guzzle Http with the version 7.
But the package you're trying to install is compatible with Guzzle until version 6.
You may downgrade Guzzle in your root composer.json, but I wouldn't recommend it. It may break the framework.
Another solution is trying to make a PR to the package to make it compatible with Laravel 8, or use Laravel version 7

cannot install panther under symfony 5

I really need help because I cannot install panther at Symfony 5 project. The Symfony/panther requires facebook/webdriver and everytime I did : composer require facebook/webdriver or composer req symfony/panther
I got this error message :
- facebook/webdriver 1.7.1 requires symfony/process ^2.8 || ^3.1 || ^4.0 -> no matching package found.
- facebook/webdriver 1.7.0 requires symfony/process ^2.8 || ^3.1 || ^4.0 -> no matching package found.
- Installation request for facebook/webdriver ^1.7 -> satisfiable by facebook/webdriver[1.7.0, 1.7.1].
I use Composer version 1.9.1 and PHP 7.2.14
Thanks a lot
It's because symfony/process package has no version with suitable stability for your application. I just had the same problem and adding "minimum-stability": "dev" to composer.json solved this issue for me.
Minimum-stability is "stable" by default.
This problem will be fixed in next release of facebook/webdriver. For now you can install dev version of this package:
composer require facebook/webdriver:^1.8#dev
And after that you can install symfony/panther
Issue here: https://github.com/php-webdriver/php-webdriver/issues/712

When trying to install php-jwt facing trouble with auth0

I'm trying to install php-jwt. When I enter the following command
composer require firebase/php-jwt
it gives the following error.
Using version ^4.0 for firebase/php-jwt
./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
- auth0/auth0-php 4.0.12 requires firebase/php-jwt ^3.0 -> satisfiable by firebase/php-jwt[v3.0.0] but these conflict with your requirements or minimum-stability.
- auth0/auth0-php 4.0.12 requires firebase/php-jwt ^3.0 -> satisfiable by firebase/php-jwt[v3.0.0] but these conflict with your requirements or minimum-stability.
- auth0/auth0-php 4.0.12 requires firebase/php-jwt ^3.0 -> satisfiable by firebase/php-jwt[v3.0.0] but these conflict with your requirements or minimum-stability.
- Installation request for auth0/auth0-php (locked at 4.0.12, required as ~4.0) -> satisfiable by auth0/auth0-php[4.0.12].
Installation failed, reverting ./composer.json to its original content.
For better understanding giving the screenshot here.
I've tried enough but couldn't find any good solution.
that's because your are trying to install the latest version of php-jwt which is: 4.0 as shown at packagist.org.
In the same time which is another packages - seems to be auth0 is using older version of php-jwt which is 3.0, so you will have to install php-jwt with the version 3.0 as follows:
composer require firebase/php-jwt:^3.0
OR
update your auth0 package to the latest version which is using the latest major version of php-jwt as shown in here:
"firebase/php-jwt" : "^4.0"
Note: Don't forget to take a backup of your project before updating your packages.

Laravel 5.3 socialite installation error

I am trying to install laravel socialite plugin using this command
composer require laravel/socialite
But i will get the following error
Your requirements could not be resolved to an installable set of
packages
Problem 1
- laravel/socialite v3.0.0 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0].
- laravel/socialite v3.0.2 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0].
- laravel/socialite v3.0.3 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0].
- Conclusion: don't install illuminate/http v5.4.0
- Installation request for laravel/socialite ^3.0 -> satisfiable by laravel/socialite[v3.0.0, v3.0.2, v3.0.3].
Laravel version: 5.3
php version 7.0.13
I think the issue is that you are trying to install latest socialite package for the Laravel 5.3 which needs at least Laravel 5.4.
Problem 1 - laravel/socialite v3.0.0 requires illuminate/http ~5.4 -> satisfiable by
Try to install on Laravel 5.4.
Check this:
https://github.com/laravel/socialite/blob/3.0/composer.json
"require": {
"php": ">=5.4.0",
"illuminate/contracts": "~5.4",
"illuminate/http": "~5.4",
"illuminate/support": "~5.4",
"guzzlehttp/guzzle": "~6.0",
"league/oauth1-client": "~1.0"
},
It requires 5.4
OR
As an alternative you can use the older version of socialite which is compatible with Laravel 5.3 like:
composer require laravel/socialite 2.0
Solution :
For laravel 5.3
Run following command and this will work for you.
composer require laravel/socialite ^2.0
May be this would help
composer require laravel/socialite "^3.2.0"
https://laravel.com/docs/5.6/socialite#installation
composer require laravel/socialite "~3.2.0"

Laravel passport installation error

I've just downloaded the latest laravel 5.3 and I'm trying to install passport, but I'm getting the following composer error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/passport v2.0.0 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0].
- laravel/passport v2.0.1 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0].
- Conclusion: don't install illuminate/http v5.4.0
- Installation request for laravel/passport ^2.0 -> satisfiable by laravel/passport[v2.0.0, v2.0.1].
Installation failed, reverting ./composer.json to its original content.
Composer .json file
http://pastebin.com/ne4RkL96
It happens, because after releasing Laravel 5.4, this package also had been updated to v 2.0 and requires Laravel 5.4. But you are using Laravel 5.3. Try to install earlier version:
composer require laravel/passport ^v1
Also, you can learn about the versions of this package here:
Laravel Passport
For Laravel 5.3.
In your composer.json file put "laravel/passport": "~1.0" and run "composer update" command.
In line with Rashad's answer as it helped me out, you need a version of passport less than major version 2. This can be accomplished with several version strings ^v1, v1.x, >= 1 < 2 and several other combinations.
I used this: php composer.phar require laravel/passport ^v1 and it worked awesomely.
Install laravel passport version 7:
> composer require laravel/passport:7.5.1

Categories