I'm trying to use google-api-php-client in my laravel project.
I'm installed the package using "composer require google/apiclient" command and also added the following line in composer.json.
{
"autoload": {
"classmap": [
"vendor/google/apiclient/src/Google"
],
}
}
and run this command too "composer dump-autoload"
But whenever i try to create new Google Client object, it keeps returning fatal error : Google_Client not found.
Can anybody help me with this issue?.Thanks.
I have already tried following ways.
(1) use Google_Client;
(2) $client = new Google_Client;
(3) $client = new \Google_Client;