Download the PHP package pulkitjalan/google-apiclient without Composer
On this page you can find all versions of the php package pulkitjalan/google-apiclient. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pulkitjalan/google-apiclient
More information about pulkitjalan/google-apiclient
Files in pulkitjalan/google-apiclient
Package google-apiclient
Short Description Google api php client wrapper with Cloud Platform and Laravel 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 support
Requirements
- PHP >=8.0
Installation
Install via composer
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.
Using an older version of PHP / Laravel?
If you are on a PHP version below 8.0 or a Laravel version below 10.0, use an older version of this 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.
All versions of google-apiclient with dependencies
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
google/apiclient Version ^2.16