How to add Google-Api-Php-Client library in Laravel 4.2? -
i'm trying build application using google api. however, managed make work in corephp
. i'm not able integrate google api php client library in laravel 4.2. can guide me ?
google api client available via composer. add laravel run command in base laravel dir
composer require google/apiclient
now can use google client library in controller or other part of laravel
$google_client = new google_client(); $google_client->setapplicationname('your application name'); $google_client->setclientid('your client id'); $google_client->setclientsecret('secret');
Comments
Post a Comment