PHPackages                             akkyoh/socialite\_google - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. akkyoh/socialite\_google

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

akkyoh/socialite\_google
========================

Google OAuth2 Provider for Laravel Socialite

2.0.4(9y ago)028MITPHPPHP ^5.6 || ^7.0

Since Feb 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/akkyoh/socialite_google)[ Packagist](https://packagist.org/packages/akkyoh/socialite_google)[ RSS](/packages/akkyoh-socialite-google/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (15)Used By (0)

Google OAuth2 Provider for Laravel Socialite
============================================

[](#google-oauth2-provider-for-laravel-socialite)

[![Latest Stable Version](https://camo.githubusercontent.com/90528e9c15652ec024f8cf4da40ea392f72698cd39e17ce8dc83126fbae1b81e/68747470733a2f2f706f7365722e707567782e6f72672f616b6b796f682f736f6369616c6974655f676f6f676c652f762f737461626c652e737667)](https://packagist.org/packages/akkyoh/socialite_google)[![Total Downloads](https://camo.githubusercontent.com/584ea47ddef8c1c3f9c85d8125519654296f408edbc2970a85625e9f8fa3f856/68747470733a2f2f706f7365722e707567782e6f72672f616b6b796f682f736f6369616c6974655f676f6f676c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/akkyoh/socialite_google)[![Latest Unstable Version](https://camo.githubusercontent.com/df49c7386fafd2df5ef9be86b65d377e4324220f9fd884fe241c8c99f38f10f4/68747470733a2f2f706f7365722e707567782e6f72672f616b6b796f682f736f6369616c6974655f676f6f676c652f762f756e737461626c652e737667)](https://packagist.org/packages/akkyoh/socialite_google)

Install
-------

[](#install)

**1. COMPOSER**

```
composer require akkyoh/socialite_google

```

**2. SERVICE PROVIDER**

- Remove Laravel\\Socialite\\SocialiteServiceProvider from your providers\[\] array in config\\app.php if you have added it already.
- Add \\SocialiteProviders\\Manager\\ServiceProvider::class to your providers\[\] array in config\\app.php.

```
// For example
'providers' => [
    // a whole bunch of providers
    // remove 'Laravel\Socialite\SocialiteServiceProvider',
    \SocialiteProviders\Manager\ServiceProvider::class, // add
];

```

- If you would like to use the Socialite Facade, you need to [install it](https://laravel.com/docs/5.0/authentication#social-authentication).

**3. ADD THE EVENT AND LISTENERS**

- Add SocialiteProviders\\Manager\\SocialiteWasCalled event to your listen\[\] array in &lt;app\_name&gt;/Providers/EventServiceProvider.
- Add your listeners (i.e. the ones from the providers) to the SocialiteProviders\\Manager\\SocialiteWasCalled\[\] that you just created.
- The listener that you add for this provider is 'Akkyoh\\SocialiteGoogle\\GoogleExtendSocialite@handle',.
- Note: You do not need to add anything for the built-in socialite providers unless you override them with your own providers.

```
// For example
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // add your listeners (aka providers) here
        'Akkyoh\SocialiteGoogle\GoogleExtendSocialite@handle',
    ],
];

```

**4. ENVIRONMENT VARIABLES**

If you add environment values to your .env as exactly shown below, **you do not need to add an entry to the services array**.

###### APPEND PROVIDER VALUES TO YOUR .ENV FILE

[](#append-provider-values-to-your-env-file)

```
// other values above
GOOGLE_KEY=yourkeyfortheservice
GOOGLE_SECRET=yoursecretfortheservice
GOOGLE_REDIRECT_URI=https://example.com/login/

```

###### ADD TO CONFIG/SERVICES.PHP.

[](#add-to-configservicesphp)

You do not need to add this if you add the values to the .env exactly as shown above. The values below are provided as a convenience in the case that a developer is not able to use the .env method

```
'google' => [
    'client_id' => env('GOOGLE_KEY'),
    'client_secret' => env('GOOGLE_SECRET'),
    'redirect' => env('GOOGLE_REDIRECT_URI'),
],

```

USAGE
=====

[](#usage)

You should now be able to use it like you would regularly use Socialite (assuming you have the facade installed):

```
return Socialite::driver('google') -> redirect();

```

RESOURCES
=========

[](#resources)

[Socialite Providers](http://socialiteproviders.github.io/)[Laravel Socialite Docs](https://github.com/laravel/socialite)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

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 ~40 days

Recently: every ~102 days

Total

14

Last Release

3571d ago

Major Versions

v1.1.0 → v2.0.02016-03-30

PHP version history (3 changes)v1.0.0PHP &gt;=5.4.0

1.0.x-devPHP &gt;=5.5.0

v2.0.0PHP ^5.6 || ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/810b1e51c01b2fd45ca7bd178621356768856ee4cc876dc20e59d6eba84a262f?d=identicon)[akkyoh](/maintainers/akkyoh)

---

Top Contributors

[![akkyoh](https://avatars.githubusercontent.com/u/3147258?v=4)](https://github.com/akkyoh "akkyoh (4 commits)")[![draperstudio](https://avatars.githubusercontent.com/u/257012927?v=4)](https://github.com/draperstudio "draperstudio (1 commits)")[![ingria](https://avatars.githubusercontent.com/u/2178368?v=4)](https://github.com/ingria "ingria (1 commits)")

### Embed Badge

![Health badge](/badges/akkyoh-socialite-google/health.svg)

```
[![Health](https://phpackages.com/badges/akkyoh-socialite-google/health.svg)](https://phpackages.com/packages/akkyoh-socialite-google)
```

###  Alternatives

[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

326.1M13](/packages/socialiteproviders-microsoft)[socialiteproviders/apple

Apple OAuth2 Provider for Laravel Socialite

618.4M8](/packages/socialiteproviders-apple)[socialiteproviders/instagram

Instagram OAuth2 Provider for Laravel Socialite

421.9M5](/packages/socialiteproviders-instagram)[socialiteproviders/microsoft-azure

Microsoft Azure OAuth2 Provider for Laravel Socialite

556.0M19](/packages/socialiteproviders-microsoft-azure)[socialiteproviders/laravelpassport

LaravelPassport OAuth2 Provider for Laravel Socialite

621.3M7](/packages/socialiteproviders-laravelpassport)[socialiteproviders/discord

Discord OAuth2 Provider for Laravel Socialite

422.0M17](/packages/socialiteproviders-discord)

PHPackages © 2026

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