google/apiclient breaking changes
google/apiclient v2.0.0 (February 20, 2024) is its newest release with breaking changes, 36 of them. The first: google/apiclient v2.0.0 requires PHP 5.4 or later. Every breaking API change we have recorded in google/apiclient on Packagist: 36 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version v2.20.2, released December 3, 2026. Apache-2.0 license. Source repository
Its v2.0.0 release requires PHP 5.4 or later. PHP end of life dates.
google/apiclient v2.0.0 breaking changes
- Removed
PHP 5.4 is now the minimum; use the v1-master branch for PHP 5.2. github.com - Removed
google_api_php_client_autoload
google_api_php_client_autoload was removed in google/apiclient v2.0.0 packagist.org - Removed
Google_Auth_Abstract
sign and authenticatedRequest are replaced by Google_Client::authorize. github.com - Removed
Google_Auth_AppIdentity
App Engine credentials are now picked up by useApplicationDefaultCredentials. github.com - Removed
Google_Auth_AssertionCredentials
Service account credentials must now be loaded with setAuthConfig or application default credentials. github.com - Removed
Google_Auth_ComputeEngine
Google_Auth_ComputeEngine removed in google/apiclient v2.0.0 github.com - Removed
Google_Auth_Exception
Google_Auth_Exception removed in google/apiclient v2.0.0 github.com - Removed
Google_Auth_LoginTicket
verifyIdToken now returns the ID token payload as an array. github.com - Removed
Google_Auth_OAuth2
Applications calling Google_Client::getAuth are affected; methods on Google_Client are unchanged. github.com - Removed
Google_Auth_Simple
API key authentication is used automatically when setDeveloperKey is called. github.com - Removed
Google_Cache_Abstract
Google_Cache_Abstract removed in google/apiclient v2.0.0 github.com - Removed
Google_Client.getAuth
Google_Client::getAuth removed in google/apiclient v2.0.0 github.com - Removed
Google_Client.getIo
Google_Client::getIo removed in google/apiclient v2.0.0 github.com - Removed
Google_Client.loadServiceAccountJson
Use setAuthConfig for the key file and setScopes for the scopes. github.com - Removed
Google_Client.setAuth
Google_Client::setAuth removed in google/apiclient v2.0.0 github.com - Removed
Google_Client.setIo
Google_Client::setIo removed in google/apiclient v2.0.0 github.com - Removed
Google_Client.sign
Google_Client::sign replaced by authorize in google/apiclient v2.0.0 github.com - Removed
Google_Config
Google_Config removed in google/apiclient v2.0.0 github.com - Removed
Google_Http_Request
Google_Http_Request removed in google/apiclient v2.0.0 github.com - Removed
Google_IO_Abstract
Google_IO classes removed in google/apiclient v2.0.0 github.com - Removed
Google_IO_Curl
Google_IO classes removed in google/apiclient v2.0.0 github.com - Removed
Google_IO_Exception
Google_IO classes removed in google/apiclient v2.0.0 github.com - Removed
Google_IO_Stream
Google_IO classes removed in google/apiclient v2.0.0 github.com - Removed
Google_Logger_Abstract
Google_Logger classes removed in google/apiclient v2.0.0 github.com - Removed
Google_Logger_Exception
Google_Logger classes removed in google/apiclient v2.0.0 github.com - Removed
Google_Logger_File
Google_Logger classes removed in google/apiclient v2.0.0 github.com - Removed
Google_Logger_Null
Google_Logger classes removed in google/apiclient v2.0.0 github.com - Removed
Google_Logger_Psr
Google_Logger classes removed in google/apiclient v2.0.0 github.com - Removed
Google_Signer_P12
Google_Signer_P12 removed in google/apiclient v2.0.0 github.com - Removed
Google_Utils
Google_Utils removed in google/apiclient v2.0.0 github.com - Removed
Google_Verifier_Pem
Google_Verifier_Pem removed in google/apiclient v2.0.0 github.com - Behavior changed
Google_Client.getAccessToken
Access tokens are arrays, so encode them with json_encode before storing them as strings. github.com - Behavior changed
Google_Client.verifyIdToken
Read the ID token payload from the returned array instead of getAttributes(). github.com - Configuration changed
Install the library with composer require google/apiclient:~2.0 and include vendor/autoload.php. github.com - Signature changed
Google_Client.setLogger
Pass an object implementing Psr\Log\LoggerInterface to setLogger. github.com - Signature changed
Google_Http_MediaFileUpload
The $boundary constructor argument was removed. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.