Jwt-auth: PHP 8.0 Compatibility

Created on 28 Dec 2020  路  14Comments  路  Source: tymondesigns/jwt-auth

PHP 8.0 is not supported.

Output from Composer:

Problem 1

  • lcobucci/jwt is locked to version 3.3.3 and an update of this package was not requested.
  • lcobucci/jwt 3.3.3 requires php ^5.6 || ^7.0 -> your php version (8.0.0) does not satisfy that requirement.

Problem 2

  • tymon/jwt-auth is locked to version 1.0.2 and an update of this package was not requested.
  • tymon/jwt-auth 1.0.2 requires php ^5.5.9|^7.0 -> your php version (8.0.0) does not satisfy that requirement.

Most helpful comment

@tymondesigns any plans to support php8?

All 14 comments

Yes. Also waiting for an update because I have another dependency which uses "lcobucci/jwt": "^3.4 || ^4.0". Workarounds from closed issues (like this https://github.com/tymondesigns/jwt-auth/issues/2079) do not help

I can see PHP 8 was added to composer.json, when can we expect that release?

@tymondesigns any plans to support php8?

good evening,
do you have any news?

please, can we have any update on that ?

Hi all,
I have the same issue. Would be appreciated for PHP 8 support

Guys, install the dev-develop / 1.0.x-dev package with composer, it has suport for php: ^7.2|^8.0;

Composer package;

I was able to get it to work on the last version of Lumen and PHP 8 with audit.

Guys, install the dev-develop / 1.0.x-dev package with composer, it has suport for php: ^7.2|^8.0;

Composer package;

I was able to get it to work on the last version of Lumen and PHP 8 with audit.

This doesn't help if you have lcobucci/jwt with higher minimum version as dependency in other package

dev-develop doesn't work because the lcobucci/jwt package is locked to <3.4, which does not support PHP 8. It needs to go to at least 4.0.0

It looks like the dev version works, is there anything that we can we do to help get a tagged release?

I would say these two version constraints conflict with each other, so either drop PHP 8 support and keep lcobucci/jwt:<3.4 or promote lcobucci/jwt to ^4.0 or ^4.1. Note that this would affect the PHP7 version constraint from ^7.2 to ^7.4

as a workaround I've sidestepped this with --ignore-platform-reqs and I've not noticed any breakages in my application

Has anyone managed to get this working with PHP8.x, and Laravel 8.x. I'm using Laravel Passport 10.x and having issues speicifically with this at the moment.

Tried using #dev-develop, -W, --ignore-platform-reqs. All we're getting is conflicts and errors.

Considering this is the JWT package within the Laravel and PHP community at the moment, it's embarassing that it's gone unresolved for so long with PHP8

@oliversarfas I have it working with PHP8 and Laravel8, the JWT package itself does support PHP8 in it's latest releases: https://packagist.org/packages/lcobucci/jwt "lcobucci/jwt": "^4.1.4",

Edit - It has supported PHP8 since 2020-11-25

@oliversarfas I have it working with PHP8 and Laravel8, the JWT package itself does support PHP8 in it's latest releases: https://packagist.org/packages/lcobucci/jwt "lcobucci/jwt": "^4.1.4",

Edit - It has supported PHP8 since 2020-11-25

That's the lcobucci package, not this one. We need a php8 tagged release

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gamelife1314 picture gamelife1314  路  3Comments

lloy0076 picture lloy0076  路  3Comments

agneshoving picture agneshoving  路  3Comments

phamduong picture phamduong  路  3Comments

marciomansur picture marciomansur  路  3Comments