Laravel Wrapper for Google API PHP Library
Google API Library (PHP) for use at UNCG
Contact: kevin.mcclain@uncg.edu
This package is a Laravel wrapper for the UNCG Google API PHP Library package, so that the Google API PHP Library can be used in Laravel apps.
This is a work in progress. Not recommend for production apps just yet.
composer require 'uncgits/google-api-wrapper-laravel'
Uncgits\GoogleApiLaravel\ServiceProvider::class,
to your config/app.php
filephp artisan vendor:publish --provider='Uncgits\GoogleApiLaravel\ServiceProvider'
- to publish the google-api.php
config file.env
file, and set your configuration options in config/google-api.php
GOOGLE_APPLICATION_CREDENTIALS= relative path to your google credentials .json
GOOGLE_DOMAIN = the domain
GOOGLE_ADMIN_ACCOUNT = account with admin rights
This package has dependencies on uncgits/google-api-php-library
, standaniels/flash
, and barryvdh/laravel-debugbar
(dev)
In your code, assuming you've set your information/credentials properly in your .env
file, you should be able to instantiate the Uncgits\GoogleApiLaravel\GoogleApi
class, and then use any of its available methods (inherited from uncgits/google-api-php-libary
) to make an API call.
Initial release