NOTE: This repository is part of Google Cloud PHP. Any
support requests, bug reports, or development contributions should be directed to
that project.
Installation
Install the preferred dependency manager for PHP, Composer.
Now install this component:
$ composer require google/cloud-game-servers
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 our gRPC installation guide.
Authentication
Please see our Authentication guide for more information
on authenticating your client. Once authenticated, you'll be ready to start making requests.
Sample
use Google\Cloud\Gaming\V1\GameServerDeploymentsServiceClient;
$client = new GameServerDeploymentsServiceClient();
$deployments = $client->listGameServerDeployments(
GameServerDeploymentsServiceClient::locationName('[PROJECT_ID]', 'global')
);
foreach ($deployments as $deployment) {
print $deployment->getName() . ': ' . $deployment->getDescription() . PHP_EOL;
}
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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["Version latestkeyboard_arrow_down\n\n- [1.2.6 (latest)](/php/docs/reference/cloud-game-servers/latest)\n- [1.2.5](/php/docs/reference/cloud-game-servers/1.2.5)\n- [1.1.1](/php/docs/reference/cloud-game-servers/1.1.1)\n- [1.0.5](/php/docs/reference/cloud-game-servers/1.0.5) \n\nGoogle Cloud Game Servers for PHP\n=================================\n\n\u003e Idiomatic PHP client for [Google Cloud Game Servers](https://cloud.google.com/game-servers).\n\n[](https://packagist.org/packages/google/cloud-game-servers) [](https://packagist.org/packages/google/cloud-game-servers)\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\n### Installation\n\nInstall the preferred dependency manager for PHP, [Composer](https://getcomposer.org/).\n\nNow install this component: \n\n $ composer require google/cloud-game-servers\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 use Google\\Cloud\\Gaming\\V1\\GameServerDeploymentsServiceClient;\n\n $client = new GameServerDeploymentsServiceClient();\n\n $deployments = $client-\u003elistGameServerDeployments(\n GameServerDeploymentsServiceClient::locationName('[PROJECT_ID]', 'global')\n );\n\n foreach ($deployments as $deployment) {\n print $deployment-\u003egetName() . ': ' . $deployment-\u003egetDescription() . PHP_EOL;\n }\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\n1. Understand the [official documentation](https://cloud.google.com/game-servers/docs)."]]