bnjns / google-services
A small package that extends the functionality of the Google Service API library to provide some useful wrapper functions.
Requires
- php: >=7.0
- ext-json: *
- google/apiclient: ^2.0
This package is auto-updated.
Last update: 2020-05-08 01:28:29 UTC
README
This package provides some wrapper functionality around the the Google Services API to make it slightly easier to use.
Installing
To install, simply add it to your
composer.json
file:
$ composer require bnjns/google-services
Laravel
This package doesn't need Laravel to function, but it can be added to the Laravel container by adding the GoogleServiceProvider
to your config/app.php
file. For the later versions of Laravel, this will be automatically detected.
You will also need to publish the config file using:
$ php artisan vendor:publish --provider="bnjns\GoogleServices\GoogleServiceProvider" --tag=config
Using
To use the service, simply create an instance of bnjns\GoogleServices\Client
, passing in the array of configuration arguments. When using Laravel, this is
taken care of by the container if you inject an instance of that class.
Have a look at the included config/google.php
file to see what configuration values are needed.