PHPackages                             tipoff/laravel-google-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. tipoff/laravel-google-api

ActiveLibrary[API Development](/categories/api)

tipoff/laravel-google-api
=========================

Laravel package for interacting with Google APIs.

2.1.3(5y ago)140.3k[11 issues](https://github.com/tipoff/laravel-google-api/issues)[1 PRs](https://github.com/tipoff/laravel-google-api/pulls)3MITPHPPHP ^7.4|^8.0

Since Feb 24Pushed 5y ago4 watchersCompare

[ Source](https://github.com/tipoff/laravel-google-api)[ Packagist](https://packagist.org/packages/tipoff/laravel-google-api)[ Docs](https://github.com/tipoff/laravel-google-api)[ GitHub Sponsors](https://github.com/tipoff)[ RSS](/packages/tipoff-laravel-google-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (17)Used By (3)

Laravel Package for tracking Google laravel-google-api
======================================================

[](#laravel-package-for-tracking-google-laravel-google-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4b603a287954ff6283bf6c57a4059ba98be340df8049c157e163de88822b02f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7469706f66662f6c61726176656c2d676f6f676c652d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tipoff/laravel-google-api)[![Tests](https://github.com/tipoff/laravel-google-api/workflows/Tests/badge.svg)](https://github.com/tipoff/laravel-google-api/workflows/Tests/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/eda975bd9290f9f736aa34638ac176705a05a1fec6e94b0f066fdb7d10fead45/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7469706f66662f6c61726176656c2d676f6f676c652d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tipoff/laravel-google-api)

This is where your description should go.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require tipoff/laravel-google-api
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Tipoff\GoogleApi\GoogleApiServiceProvider" --tag="google-api-config"
```

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.

```
GOOGLE_CLIENT_ID=
GOOGLE_PROJECT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URIS=
GOOGLE_JAVASCRIPT_ORIGINS=

GOOGLE_API_KEY=

```

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
------

[](#models)

We include the following models:

**List of Models**

- GMB Account
- Key

For each of these models, this package implements an [authorization policy](https://laravel.com/docs/8.x/authorization) that extends the roles and permissions approach of the [tipoff/authorization](https://github.com/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](https://nova.laravel.com/docs/3.0/resources/) in this package and they are also registered through the package and do not need to be registered manually.

Usage
-----

[](#usage)

```
// Get access token.
$accessToken = GoogleOauth::accessToken('search-console');

// Set access token.
$googleServices = app(GoogleServices::class)->setAccessToken($accessToken);

// Access services.
$searchConsole = $googleServices->searchConsole();
$myBusiness = $googleServices->myBusiness();
$youtube = $googleServices->youtube();
$youtubeAnalytics = $googleServices->youtubeAnalytics();
$analytics = $googleServices->analytics();
$place = $googleServices->places();

```

**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](https://github.com/SachinAgarwal1337/google-places-api/#available-methods).
- 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](https://github.com/schulzefelix/laravel-search-console).

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Tipoff](https://github.com/tipoff)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~5 days

Total

14

Last Release

1838d ago

Major Versions

1.3.3 → 2.0.02021-04-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ccc9e3647546c97a5a77b995736302afd85bebdcb43d8fde7d11486579c30c0?d=identicon)[drewroberts](/maintainers/drewroberts)

---

Top Contributors

[![drewroberts](https://avatars.githubusercontent.com/u/24581081?v=4)](https://github.com/drewroberts "drewroberts (71 commits)")[![kylebarney](https://avatars.githubusercontent.com/u/15039520?v=4)](https://github.com/kylebarney "kylebarney (56 commits)")[![huntermontell](https://avatars.githubusercontent.com/u/64396917?v=4)](https://github.com/huntermontell "huntermontell (14 commits)")[![phuclh](https://avatars.githubusercontent.com/u/6707194?v=4)](https://github.com/phuclh "phuclh (12 commits)")[![wolfrednicolas](https://avatars.githubusercontent.com/u/13080491?v=4)](https://github.com/wolfrednicolas "wolfrednicolas (9 commits)")[![gurgentil](https://avatars.githubusercontent.com/u/12678835?v=4)](https://github.com/gurgentil "gurgentil (5 commits)")[![joshtorres](https://avatars.githubusercontent.com/u/5092957?v=4)](https://github.com/joshtorres "joshtorres (3 commits)")[![pdbreen](https://avatars.githubusercontent.com/u/1670907?v=4)](https://github.com/pdbreen "pdbreen (2 commits)")[![chx2](https://avatars.githubusercontent.com/u/24723492?v=4)](https://github.com/chx2 "chx2 (1 commits)")

---

Tags

laraveltipofflaravel-google-api

### Embed Badge

![Health badge](/badges/tipoff-laravel-google-api/health.svg)

```
[![Health](https://phpackages.com/badges/tipoff-laravel-google-api/health.svg)](https://phpackages.com/packages/tipoff-laravel-google-api)
```

###  Alternatives

[pulkitjalan/google-apiclient

Google api php client wrapper with Cloud Platform and Laravel support

2582.9M5](/packages/pulkitjalan-google-apiclient)[dacastro4/laravel-gmail

Gmail API package for Laravel

312382.9k1](/packages/dacastro4-laravel-gmail)[badaso/core

The API &amp; platform builder, build your apps 10x faster even more, it's open source &amp; 100% free !

1.3k16.2k10](/packages/badaso-core)[thujohn/analytics

Google Analytics for Laravel 4

113108.7k1](/packages/thujohn-analytics)[schulzefelix/laravel-search-console

A Laravel package to retrieve data from Google Search Console

5037.8k1](/packages/schulzefelix-laravel-search-console)[scottybo/laravel-google-my-business

A package for Laravel which implements the Google My Business API

3360.3k](/packages/scottybo-laravel-google-my-business)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
