Download the PHP package macromindonline/google-apiclient without Composer
On this page you can find all versions of the php package macromindonline/google-apiclient. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download macromindonline/google-apiclient
More information about macromindonline/google-apiclient
Files in macromindonline/google-apiclient
Package google-apiclient
Short Description Google api php client wrapper with Cloud Platform and Laravel 4 & 5 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 4 & 5 support
Requirements
This package requires PHP >=5.4
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 pulkitjalan/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="PulkitJalan\Google\GoogleServiceProvider" --tag="config"
to publish the config file.
Looking for a Laravel 4 compatible version?
Checkout the 1.0 branch
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.