NOTE:This repository is part ofGoogle Cloud PHP. Any
support requests, bug reports, or development contributions should be directed to
that project.
Kubernetes Engine is a managed, production-ready environment for deploying containerized applications. It brings our
latest innovations in developer productivity, resource efficiency, automated operations, and open source flexibility to
accelerate your time to market.
Installation
To begin, install the preferred dependency manager for PHP,Composer.
Now install this component:
$ composer require google/cloud-container
This component supports both REST over HTTP/1.1 and gRPC. In order to take advantage of the benefits offered by gRPC (such as streaming methods)
please see ourgRPC installation guide.
Authentication
Please see ourAuthentication guidefor more information
on authenticating your client. Once authenticated, you'll be ready to start making requests.
Please see ourDebugging guidefor more information about the debugging tools.
Version
This component is considered GA (generally available). As such, it will not introduce backwards-incompatible changes in
any minor or patch releases. We will address issues and requests with the highest priority.
[[["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,["Version latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/php/docs/reference/cloud-container/latest)\n- [2.4.0](/php/docs/reference/cloud-container/2.4.0)\n- [2.3.4](/php/docs/reference/cloud-container/2.3.4)\n- [2.2.1](/php/docs/reference/cloud-container/2.2.1)\n- [2.1.0](/php/docs/reference/cloud-container/2.1.0)\n- [2.0.0](/php/docs/reference/cloud-container/2.0.0)\n- [1.33.0](/php/docs/reference/cloud-container/1.33.0)\n- [1.32.0](/php/docs/reference/cloud-container/1.32.0)\n- [1.31.0](/php/docs/reference/cloud-container/1.31.0)\n- [1.30.3](/php/docs/reference/cloud-container/1.30.3)\n- [1.24.0](/php/docs/reference/cloud-container/1.24.0)\n- [1.23.0](/php/docs/reference/cloud-container/1.23.0)\n- [1.22.0](/php/docs/reference/cloud-container/1.22.0)\n- [1.21.1](/php/docs/reference/cloud-container/1.21.1)\n- [1.20.0](/php/docs/reference/cloud-container/1.20.0)\n- [1.19.0](/php/docs/reference/cloud-container/1.19.0)\n- [1.18.0](/php/docs/reference/cloud-container/1.18.0)\n- [1.17.1](/php/docs/reference/cloud-container/1.17.1)\n- [1.16.0](/php/docs/reference/cloud-container/1.16.0)\n- [1.15.0](/php/docs/reference/cloud-container/1.15.0)\n- [1.14.0](/php/docs/reference/cloud-container/1.14.0)\n- [1.13.1](/php/docs/reference/cloud-container/1.13.1)\n- [1.12.1](/php/docs/reference/cloud-container/1.12.1)\n- [1.10.3](/php/docs/reference/cloud-container/1.10.3)\n- [1.9.1](/php/docs/reference/cloud-container/1.9.1) \n\nGoogle Cloud Container for PHP\n==============================\n\n\u003e Idiomatic PHP client for [Google Cloud Container](https://cloud.google.com/kubernetes-engine/).\n\n[](https://packagist.org/packages/google/cloud-container) [](https://packagist.org/packages/google/cloud-container)\n\n**NOTE:** This repository is part of [Google Cloud PHP](https://github.com/googleapis/google-cloud-php). Any\nsupport requests, bug reports, or development contributions should be directed to\nthat project.\n\nKubernetes Engine is a managed, production-ready environment for deploying containerized applications. It brings our\nlatest innovations in developer productivity, resource efficiency, automated operations, and open source flexibility to\naccelerate your time to market.\n\n### Installation\n\nTo begin, install the preferred dependency manager for PHP, [Composer](https://getcomposer.org/).\n\nNow install this component: \n\n $ composer require google/cloud-container\n\nThis component supports both REST over HTTP/1.1 and gRPC. In order to take advantage of the benefits offered by gRPC (such as streaming methods)\nplease see our [gRPC installation guide](https://cloud.google.com/php/grpc).\n\n### Authentication\n\nPlease see our [Authentication guide](https://github.com/googleapis/google-cloud-php/blob/main/AUTHENTICATION.md) for more information\non authenticating your client. Once authenticated, you'll be ready to start making requests.\n\n### Sample\n\n require 'vendor/autoload.php';\n\n use Google\\Cloud\\Container\\V1\\ClusterManagerClient;\n\n $clusterManagerClient = new ClusterManagerClient();\n\n $projectId = '[MY-PROJECT-ID]';\n $zone = 'us-central1-a';\n\n try {\n $clusters = $clusterManagerClient-\u003elistClusters($projectId, $zone);\n foreach ($clusters-\u003egetClusters() as $cluster) {\n print('Cluster: ' . $cluster-\u003egetName() . PHP_EOL);\n }\n } finally {\n $clusterManagerClient-\u003eclose();\n }\n\n### Debugging\n\nPlease see our [Debugging guide](https://github.com/googleapis/google-cloud-php/blob/main/DEBUG.md)\nfor more information about the debugging tools.\n\n### Version\n\nThis component is considered GA (generally available). As such, it will not introduce backwards-incompatible changes in\nany minor or patch releases. We will address issues and requests with the highest priority.\n\n### Next Steps\n\nTake a look at and understand the [official documentation](https://cloud.google.com/kubernetes-engine/docs)."]]