PHPackages                             brunodev/google-auth-php - 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. brunodev/google-auth-php

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

brunodev/google-auth-php
========================

Biblioteca PHP que realiza autenticação com o Google utilizando o cliente oficial google-api-php-client, facilitando o processo de login e integração com os serviços e APIs do Google.

v1.0.2(7mo ago)0211MITPHP

Since Nov 5Pushed 7mo agoCompare

[ Source](https://github.com/BrunoGsouza90/login_google)[ Packagist](https://packagist.org/packages/brunodev/google-auth-php)[ RSS](/packages/brunodev-google-auth-php/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Autenticação Google PHP
=======================

[](#autenticação-google-php)

Biblioteca PHP que realiza autenticação com o Google utilizando o cliente oficial [`google-api-php-client`](https://github.com/googleapis/google-api-php-client), facilitando o processo de login e integração com os serviços e APIs do Google.

---

🚀 Recursos
----------

[](#-recursos)

- Autenticação OAuth2 com o Google
- Suporte ao login via conta Google
- Integração simples com APIs do Google (Drive, Gmail, Calendar, etc.)
- Baseado no cliente oficial da Google para PHP

---

📦 Instalação
------------

[](#-instalação)

Instale via [Composer](https://getcomposer.org/):

```
composer require brunodev/google-auth-php
```

---

⚙️ Configuração
---------------

[](#️-configuração)

A biblioteca depende de algumas **variáveis de ambiente** para funcionar corretamente. Configure-as no seu `.env` ou no ambiente do servidor:

```
# Caminho para o certificado CA usado pelo Guzzle (opcional, fallback para padrão do sistema)
GOOGLE_CA_CERT_PATH=/etc/ssl/certs/ca-certificates.crt

# Credenciais do Google em formato JSON (geradas pelo Google Cloud Console)
GOOGLE_CREDENTIALS_JSON='{"type":"service_account","project_id":"...","private_key_id":"...","private_key":"-----BEGIN PRIVATE KEY-----..."}'

# Redirect URI configurado no Google Cloud Console
GOOGLE_REDIRECT_URI=http://localhost:8000/callback

# Scopes da autenticação, em JSON (uma linha)
GOOGLE_SCOPES='["email","profile"]'

# ID do cliente no Google.
GOOGLE_CLIENT_ID=seu_id_aqui

# A chave secreta do cliente.
GOOGLE_CLIENT_SECRET=seu_secret_aqui
```

> Dica: caso `GOOGLE_CA_CERT_PATH` não seja definido, o Guzzle usará o certificado padrão do sistema. Scopes podem ser ajustados conforme os serviços que você deseja acessar.

---

📝 Uso básico
------------

[](#-uso-básico)

```

```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance62

Regular maintenance activity

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

230d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/26940b01976d58af257cfd68c8ce9bea4789999d0507e443ade1f768d3608b7d?d=identicon)[BrunoGsouza90](/maintainers/BrunoGsouza90)

---

Top Contributors

[![BrunoGsouza90](https://avatars.githubusercontent.com/u/171183456?v=4)](https://github.com/BrunoGsouza90 "BrunoGsouza90 (15 commits)")

### Embed Badge

![Health badge](/badges/brunodev-google-auth-php/health.svg)

```
[![Health](https://phpackages.com/badges/brunodev-google-auth-php/health.svg)](https://phpackages.com/packages/brunodev-google-auth-php)
```

###  Alternatives

[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

84735.1k](/packages/flow-php-flow)[alchemyguy/youtube-laravel-api

Modern Laravel wrapper for the YouTube Data API v3 with OAuth, live streaming, channels, and video uploads.

637.3k](/packages/alchemyguy-youtube-laravel-api)[jamesedmonston/graphql-authentication

GraphQL authentication for your headless Craft CMS applications.

2917.3k](/packages/jamesedmonston-graphql-authentication)[phhung1901/google_one_tap

Login with google one tap/google popup login

2817.5k](/packages/phhung1901-google-one-tap)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1232.2k16](/packages/fleetbase-core-api)[chameleon-system/chameleon-base

The Chameleon System core.

1027.9k4](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

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