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
Google\ApiCore\ApiException;
Google\Cloud\ConfidentialComputing\V1\Client\ConfidentialComputingClient;
Google\Cloud\Location\GetLocationRequest;
Google\Cloud\Location\Location;
// Create a client.
$confidentialComputingClient = new ConfidentialComputingClient();
// Prepare the request message.
$request = new GetLocationRequest();
// Call the API and handle any network failures.
try {
/** @var Location $response */
$response = $confidentialComputingClient->getLocation($request);
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
} catch (ApiException $ex) {
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
}
Please see our Debugging guide
for 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"]],[["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.4.1 (latest)](/php/docs/reference/cloud-confidentialcomputing/latest)\n- [1.4.0](/php/docs/reference/cloud-confidentialcomputing/1.4.0)\n- [1.3.0](/php/docs/reference/cloud-confidentialcomputing/1.3.0)\n- [1.2.2](/php/docs/reference/cloud-confidentialcomputing/1.2.2)\n- [1.1.1](/php/docs/reference/cloud-confidentialcomputing/1.1.1)\n- [1.0.0](/php/docs/reference/cloud-confidentialcomputing/1.0.0)\n- [0.8.3](/php/docs/reference/cloud-confidentialcomputing/0.8.3)\n- [0.7.0](/php/docs/reference/cloud-confidentialcomputing/0.7.0)\n- [0.6.0](/php/docs/reference/cloud-confidentialcomputing/0.6.0)\n- [0.5.1](/php/docs/reference/cloud-confidentialcomputing/0.5.1)\n- [0.4.0](/php/docs/reference/cloud-confidentialcomputing/0.4.0)\n- [0.3.0](/php/docs/reference/cloud-confidentialcomputing/0.3.0)\n- [0.2.2](/php/docs/reference/cloud-confidentialcomputing/0.2.2)\n- [0.1.1](/php/docs/reference/cloud-confidentialcomputing/0.1.1) \n\nGoogle Cloud Confidential Computing for PHP\n===========================================\n\n\u003e Idiomatic PHP client for [Google Cloud Confidential Computing](https://cloud.google.com/confidential-computing).\n\n[](https://packagist.org/packages/google/cloud-confidentialcomputing) [](https://packagist.org/packages/google/cloud-confidentialcomputing)\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\nTo begin, install the preferred dependency manager for PHP, [Composer](https://getcomposer.org/).\n\nNow, install this component: \n\n $ composer require google/cloud-confidentialcomputing\n\n\u003e Browse the complete list of [Google Cloud APIs](https://cloud.google.com/php/docs/reference)\n\u003e for PHP\n\nThis component supports both REST over HTTP/1.1 and gRPC. In order to take advantage of the benefits\noffered by gRPC (such as streaming methods) please see our\n[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 Google\\ApiCore\\ApiException;\n Google\\Cloud\\ConfidentialComputing\\V1\\Client\\ConfidentialComputingClient;\n Google\\Cloud\\Location\\GetLocationRequest;\n Google\\Cloud\\Location\\Location;\n\n // Create a client.\n $confidentialComputingClient = new ConfidentialComputingClient();\n\n // Prepare the request message.\n $request = new GetLocationRequest();\n\n // Call the API and handle any network failures.\n try {\n /** @var Location $response */\n $response = $confidentialComputingClient-\u003egetLocation($request);\n printf('Response data: %s' . PHP_EOL, $response-\u003eserializeToJsonString());\n } catch (ApiException $ex) {\n printf('Call failed with message: %s' . PHP_EOL, $ex-\u003egetMessage());\n }\n\nSee the [samples directory](https://github.com/googleapis/google-cloud-php-confidentialcomputing/tree/main/samples) for a canonical list of samples.\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\n1. Understand the [official documentation](https://cloud.google.com/compute/confidential-vm/docs)."]]