Skip to content
CAI
Produce a survey ↗Verify a survey

googleapis/google-api-php-client

This system is a modernized PHP client library for interacting with Google APIs, providing a unified interface for authentication, HTTP transport, and service management. It has been refactored to support PHP 8.1+ and modern standards like PSR-4 and PSR-7, replacing legacy implementations with updated classes for access token handling, batch processing, and task execution. The library now relies on external packages for specific API services and authentication mechanisms, focusing on core client functionality, security improvements, and robust error handling.

61.2

Adequate · 2 August 2026

5k

lines of production code

PHP

primary language

1

bus factor · 187 authors in all

3

measurements over time

CAI band scale
CAI trend line

How it got here

2013 · Legacy code removal and modernization

This period focused on removing legacy components, including old client classes, authentication mechanisms, cache backends, and HTTP transport layers. The project was modernized by updating dependencies to support PHP 8.1 and PSR-4 autoloading, while example scripts and tests were updated to reflect current best practices and security standards.

14 changes

2015–2024 · Namespace reorganization and test coverage

This period focused on modernizing the codebase by migrating to a flat directory structure under the `Google` namespace and introducing PSR-7 compatible HTTP and authentication handlers. Extensive unit tests were added across all components, including HTTP, service, and task layers, to ensure the refactored code met quality standards.

13 changes

CAI lens gauges

Survey your own repository

googleapis/google-api-php-client was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point the surveyor at a repository you know and see whether you agree with it.

Survey a repository

About this page

  • The description of this project is derived from its own commit history, not from its README.
  • The score is its highest published measurement, taken on 2 August 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit f745b31011 — the exact code this score is about.
  • Scored under rubric rubric-2026.08.18. Score the same commit under that rubric and you get the same number.
CAI link cards