Class Firebase\JWT\JWT not found

前端 未结 5 1328
旧时难觅i
旧时难觅i 2020-12-20 14:57

I want to use pure firebase/php-jwt library in my code. Firstly, I go to /var/www/html/ and like the official library page is suggesting, I do this



        
5条回答
  •  南笙
    南笙 (楼主)
    2020-12-20 15:13

    depends whether you are using composer or not, in case of not using composer try to remove the use part:

    namespace Firebase\JWT;
    use \DomainException;
    use \InvalidArgumentException;
    use \UnexpectedValueException;
    use \DateTime;
    

    and if you are using composer make sure your autoloader if loaded

提交回复
热议问题