Class “Google_Config” not found

前端 未结 6 593
太阳男子
太阳男子 2021-01-18 02:48

I\'m trying to implement Google\'s login API via the instructions here, but for some reason, when I try to run it, I always get:

Fatal error: Class \'

6条回答
  •  -上瘾入骨i
    2021-01-18 03:24

    Instead of keeping vendor folder in root folder, keep it in google-api-php-client-master folder and use the following line to include it in your project

    require_once DIR.'/google-api-php-client-master/vendor/autoload.php';

提交回复
热议问题