Download the PHP package scottybo/google-apiclient without Composer
On this page you can find all versions of the php package scottybo/google-apiclient. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download scottybo/google-apiclient
More information about scottybo/google-apiclient
Files in scottybo/google-apiclient
Package google-apiclient
Short Description Google api php client wrapper with Cloud Platform and Laravel 7 support
License MIT
Homepage https://github.com/pulkitjalan/google-apiclient
Informations about the package google-apiclient
Google Api Client Wrapper
Google api php client wrapper with Cloud Platform and Laravel 6 support
Requirements
This package requires PHP >=7.2
Installation
Install via composer - edit your composer.json
to require the package.
Then run composer update
in your terminal to pull it in.
Or use composer require scottybo/google-apiclient
Laravel
To use in laravel add the following to the providers
array in your config/app.php
Next add the following to the aliases
array in your config/app.php
Finally run php artisan vendor:publish --provider="scottybo\Google\GoogleServiceProvider" --tag="config"
to publish the config file.
Looking for a Laravel 5 compatible version?
Checkout the original package
Usage
The Client
class takes an array as the first parameter, see example of config file below:
To use Google Cloud Platform services, enter the location to the service account JSON file (not the JSON string itself). To use App Engine or Computer Engine, leave it blank.
From Google's upgrading document:
Note: P12s are deprecated in favor of service account JSON, which can be generated in the Credentials section of Google Developer Console.
Get Google_Client
Laravel Example:
Get a service
Laravel Example:
Have a look at google/google-api-php-client-services to get a full list of the supported Google Services.