QThans / jwt-auth

JSON Web Token Authentication for Thinkphp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

为啥还要引入qeq66/jwt

isszz opened this issue · comments

commented

我看composer里面还require了一个代码一样的.....

{
    "name": "thans/tp-jwt-auth",
    "description": "thinkphp  jwt auth composer",
    "type": "library",
    "require": {
        "php": "^7.0 || ^8.0",
        "qeq66/jwt": "3.3.*",
        "topthink/framework": "^5.1.10 || ^6.0.0"
    },
    "license": "MIT",
    "authors": [
        {
            "name": "Thans",
            "email": "360641274@qq.com"
        }
    ],
    "autoload": {
        "psr-4": {
            "thans\\jwt\\": "src"
        },
        "files": [
            "src/helper.php"
        ]
    },
    "extra": {
        "think": {
            "services": [
                "thans\\jwt\\Service"
            ],
            "config": {
                "jwt": "config/config.php"
            }
        }
    },
    "minimum-stability": "dev"
}

qeq66/jwt forked from lcobucci/jwt
代码不一样,原来是requirel cobucci/jwt的,为了兼容PHP8而引入的

lcobucci/jwt 十几天前更新改了可以php8,可以不用这个了。。方便同步获取更新..还是换回去吧
看这里

@WongYueKeung

该Pull requests未合并到主分支上,官方包还是无法使用