# googleapis/google-auth-library-php

Google Auth Library for PHP

Repository: https://github.com/googleapis/google-auth-library-php
Canonical: https://ross.abutalabs.com/products/google-auth-library-php
Homepage: http://googleapis.github.io/google-auth-library-php/
Language: PHP
License: Apache-2.0
License Family: permissive
Last push: 2026-08-24T21:47:01+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 94, longevity 100
- inputs: {"age_days": 4339, "days_push": 9, "days_rel": 42, "gap_med": 26, "n_releases_24m": 20}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1403, forks 198 (observed 2026-08-28T04:04:37.874042+00:00)

## What it is
Google's officially supported PHP client library for OAuth 2.0 authentication and authorization with Google APIs. It implements Application Default Credentials (ADC) and provides Guzzle middleware for authorizing HTTP requests to Google Cloud services.

## Use cases
- authenticate PHP applications against Google Cloud APIs
- use Application Default Credentials in PHP
- authorize Guzzle HTTP requests with OAuth 2.0 tokens
- load service account credentials from JSON files
- get access tokens for calling Google APIs
- implement service account authentication in PHP

## When to choose
- building PHP applications that call Google Cloud or Google APIs
- you need ADC support in a PHP backend
- you want Guzzle middleware for automatic token handling

## When to avoid
- authenticating with non-Google identity providers
- you need a full-featured Google API client rather than just auth

## Facets
- artifact type: library
- maturity: stable
- function: auth, http-client, middleware
- domain: apis, security, cloud-computing, developer-tools
- platform: php
- tags: google-cloud, oauth2, application-default-credentials, service-account, guzzle

## Member repositories
- googleapis/google-auth-library-php (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:37.874042+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:38:55.233311+00:00, confidence not recorded.
  - readme: https://github.com/googleapis/google-auth-library-php (fetched 2026-08-28T04:04:37.874042+00:00, sha 35a7ebcc1d70)
  - homepage: http://googleapis.github.io/google-auth-library-php/ (fetched 2026-08-29T11:52:45.240710+00:00, sha 44136fa355b3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
