Download the PHP package tipoff/laravel-google-api without Composer
On this page you can find all versions of the php package tipoff/laravel-google-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tipoff/laravel-google-api
More information about tipoff/laravel-google-api
Files in tipoff/laravel-google-api
Package laravel-google-api
Short Description Laravel package for interacting with Google APIs.
License MIT
Homepage https://github.com/tipoff/laravel-google-api
Informations about the package laravel-google-api
Laravel Package for tracking Google laravel-google-api
This is where your description should go.
Installation
You can install the package via composer:
You can publish the config file with:
Add the following variables to your .env
file and set them based on the contents of the
client_secret.json
file you obtained from Google.
You can use the |
character to separate multiple strings in the GOOGLE_REDIRECT_URIS
and GOOGLE_JAVASCRIPT_ORIGINS
settings.
Obtain an API access token from Google and insert it into the keys
table, giving it an identifying slug for the next step. (Make sure that the value
field contains your token formatted as valid JSON.)
Set the value of GOOGLE_ACCESS_TOKEN_SLUG
in your .env
file to the name of the slug in your keys
table entry.
Note: If you need to customize the client secret fields or access token value on a service-by-service basis, you may do so by setting values in your .env
file for the service-specific values found in config/google-api.php
. (For example, YOUTUBE_CLIENT_ID
.)
If you do not set service-specific values, it will default to the options set above for each service.
Models
We include the following models:
List of Models
- GMB Account
- Key
For each of these models, this package implements an authorization policy that extends the roles and permissions approach of the tipoff/authorization package. The policies for each model in this package are registered through the package and do not need to be registered manually.
The models also have Laravel Nova resources in this package and they are also registered through the package and do not need to be registered manually.
Usage
Note:
- The Google Places service makes use of a third-party wrapper to access the Places API. Documentation on available methods for it is available here.
- The Google Search Console service makes use of a third-party wrapper to access the Laravel Search Console. Documentation on available methods for it is available here.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Tipoff
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-google-api with dependencies
google/apiclient Version ^2.7
schulzefelix/laravel-search-console Version ^1.7.1
skagarwal/google-places-api Version ^1.7
spatie/data-transfer-object Version ^2.8
spatie/valuestore Version ^1.2.5
tipoff/authorization Version ^2.8.6
tipoff/support Version ^2.1.5