Stay organized with collections
Save and categorize content based on your preferences.
The Cloud Client Libraries for PHP are compatible with at least the three most
recent, major PHP releases. This means that the PHP client libraries are
compatible with all
actively supported PHP releases.
PHP releases a new major version every 12 months, with two active versions and
one version receiving security fixes only.
For example, if the current Cloud Client Libraries for PHP release is PHP 8.1, the
client libraries are compatible with PHP 8.1, PHP 8.0, and PHP 7.4. The libraries
will always be compatible with at least one GA runtime for App Engine and
Cloud Run functions. For more information, see
Client libraries explained.
For new development
When starting a new project for new development, we recommend that you use the
current release of PHP.
This ensures that your runtime uses a supported PHP release and receives
critical security patches.
Keeping production systems current
Keeping your production systems on supported PHP versions is the best way to
ensure that you receive critical security and bug fixes. When
Cloud Client Libraries for PHP increment a minor version they may drop compatibility
with a previous PHP version. When a new version of a library becomes available
that drops support for a PHP version, consider upgrading your runtime to the
latest version of PHP. For more information about the use of major and minor
versions, see
Semantic Versioning.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Supported PHP versions\n\nThe Cloud Client Libraries for PHP are compatible with at least the three most\nrecent, major PHP releases. This means that the PHP client libraries are\ncompatible with all\n[actively supported PHP releases](https://www.php.net/supported-versions.php).\nPHP releases a new major version every 12 months, with two active versions and\none version receiving security fixes only.\n\nFor example, if the current Cloud Client Libraries for PHP release is PHP 8.1, the\nclient libraries are compatible with PHP 8.1, PHP 8.0, and PHP 7.4. The libraries\nwill always be compatible with at least one GA runtime for App Engine and\nCloud Run functions. For more information, see\n[Client libraries explained](/apis/docs/client-libraries-explained#google_api_client_libraries).\n\nFor new development\n-------------------\n\nWhen starting a new project for new development, we recommend that you use the\n[current release of PHP](https://www.php.net/supported-versions.php).\nThis ensures that your runtime uses a supported PHP release and receives\ncritical security patches.\n\nKeeping production systems current\n----------------------------------\n\nKeeping your production systems on supported PHP versions is the best way to\nensure that you receive critical security and bug fixes. When\nCloud Client Libraries for PHP increment a minor version they may drop compatibility\nwith a previous PHP version. When a new version of a library becomes available\nthat drops support for a PHP version, consider upgrading your runtime to the\nlatest version of PHP. For more information about the use of major and minor\nversions, see\n[Semantic Versioning](https://semver.org/).\n\nWhere to find version information\n---------------------------------\n\nTo find out what PHP versions are supported, see the\n[Google Cloud Client Libraries for PHP](https://github.com/googleapis/google-cloud-php#php-versions-supported)\npage."]]