# Dependency on "auth0/php-jwt"

**URL:** <https://community.auth0.com/t/dependency-on-auth0-php-jwt/70758>\
**Category:** Get Help\
**Tags:** auth0-php\
**Created:** [October 4, 2021, 3:10pm UTC](https://community.auth0.com/t/dependency-on-auth0-php-jwt/70758 "2021-10-04T15:10:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bayar1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bayar1/32/32122_2.png) [@bayar1](https://community.auth0.com/u/bayar1)\
**Post date:** [October 4, 2021, 3:10pm UTC](https://community.auth0.com/t/dependency-on-auth0-php-jwt/70758/1 "2021-10-04T15:10:42Z")

</div>

“name”: “auth0/auth0-php”,  
“version”: “7.9.2”,  
PHP 8.0.8

This package depends on package “auth0/php-jwt” which is clone of package “lcobucci/jwt”, but my project have already included “lcobucci/jwt”, and I can not use “auth0/auth0-php” because both packages use the same name space, but with different meaning (different versions)

Like :  
vendor/lcobucci/jwt/src/Parser.php  
namespace Lcobucci\JWT;  
interface Parser

vendor/auth0/php-jwt/src/Parser.php  
namespace Lcobucci\JWT;  
class Parser

---

<div class="post-metadata">

**Author:** ![evansims](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/evansims/32/27011_2.png) [@evansims](https://community.auth0.com/u/evansims)\
**Post date:** [October 4, 2021, 4:25pm UTC](https://community.auth0.com/t/dependency-on-auth0-php-jwt/70758/2 "2021-10-04T16:25:15Z")

</div>

Hey @bayar1 👋 Sorry for the frustration on this one; that is a known issue. We’d encourage you to migrate to the new 8.x branch of auth0-php which resolves this and removes the dependency on that library. Due to technical reasons involving that upstream library, this is not addressable on the 7.x branch. In the meantime, if you need an immediate workaround, you can use auth0/php-jwt as a drop-in replacement for lcobucci/jwt.

---

<div class="post-metadata">

**Author:** ![bayar1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bayar1/32/32122_2.png) [@bayar1](https://community.auth0.com/u/bayar1)\
**Post date:** [October 4, 2021, 5:30pm UTC](https://community.auth0.com/t/dependency-on-auth0-php-jwt/70758/3 "2021-10-04T17:30:15Z")

</div>

Thanks for a response.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 5, 2021, 1:52pm UTC](https://community.auth0.com/t/dependency-on-auth0-php-jwt/70758/4 "2021-10-05T13:52:29Z")

</div>

Thanks for helping on this one Evan!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 20, 2021, 1:53pm UTC](https://community.auth0.com/t/dependency-on-auth0-php-jwt/70758/5 "2021-10-20T13:53:01Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
