google / cloud-security-private-ca
Google证书授权服务PHP客户端
v2.0.0
2024-09-07 00:21 UTC
Requires
- php: ^8.0
- google/gax: ^1.34.0
Requires (Dev)
- phpunit/phpunit: ^9.0
Suggests
- ext-grpc: Enables use of gRPC, a universal high-performance RPC framework created by Google.
- ext-protobuf: Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions.
This package is auto-updated.
Last update: 2024-09-07 01:43:20 UTC
README
这是针对Google证书授权服务的PHP客户端。
注意:该仓库是Google Cloud PHP的一部分。任何支持请求、错误报告或开发贡献都应指向该项目。
安装
首先,安装PHP首选的依赖项管理器 Composer。
现在安装此组件
$ composer require google/cloud-security-private-ca
此组件支持HTTP/1.1的REST和gRPC。为了充分利用gRPC(如流式方法)提供的优势,请参阅我们的gRPC安装指南。
身份验证
有关如何身份验证客户端的更多信息,请参阅我们的身份验证指南。一旦身份验证成功,您就可以开始发送请求。
示例
require 'vendor/autoload.php'; use Google\Cloud\Security\PrivateCA\V1\CertificateAuthorityServiceClient; $client = new CertificateAuthorityServiceClient(); $parent = CertificateAuthorityServiceClient::locationName( '[MY_PROJECT]', 'us-west1', ); $authorities = $client->listCertificateAuthorities( $parent, ); foreach ($authorities as $authority) { print 'Found authority: ' . $authority->getName() . PHP_EOL; }
版本
此组件被认为是GA(通用可用)。因此,在所有次要或补丁版本中都不会引入不兼容的变更。我们将优先解决问题和请求。
下一步
- 了解官方文档。