google / cloud-bigtable
Cloud Bigtable Client for PHP
Requires
- php: ^8.0
- google/cloud-core: ^1.55
- google/gax: ^1.34
Requires (Dev)
- dg/bypass-finals: ^1.7
- erusev/parsedown: ^1.6
- phpdocumentor/reflection: ^5.3.3
- phpdocumentor/reflection-docblock: ^5.3
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^9.0
Suggests
- ext-protobuf: Provides a significant increase in throughput over the pure PHP protobuf implementation. See https://cloud.google.com/php/grpc for installation instructions.
- dev-main
- v2.6.0
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.1
- v2.2.0
- v2.1.0
- v2.0.1
- v2.0.0
- v2.0.0-RC1
- v1.32.2
- v1.32.1
- v1.32.0
- v1.31.1
- v1.31.0
- v1.30.3
- v1.30.2
- v1.30.1
- v1.30.0
- v1.29.2
- v1.29.1
- v1.29.0
- 1.28.x-dev
- v1.28.4
- v1.28.3
- v1.28.2
- v1.28.1
- v1.28.0
- v1.27.0
- v1.26.2
- v1.26.1
- v1.26.0
- v1.25.0
- v1.24.1
- v1.24.0
- v1.23.0
- v1.22.2
- v1.22.1
- v1.22.0
- v1.21.1
- v1.21.0
- v1.20.3
- v1.20.2
- v1.20.1
- v1.20.0
- v1.19.1
- v1.19.0
- v1.18.0
- v1.17.0
- v1.16.0
- v1.15.2
- v1.15.1
- v1.15.0
- v1.14.1
- v1.14.0
- v1.13.0
- v1.12.1
- v1.12.0
- v1.11.3
- v1.11.2
- v1.11.1
- v1.11.0
- v1.10.1
- v1.10.0
- v1.9.1
- v1.9.0
- v1.8.1
- v1.8.0
- v1.7.1
- v1.7.0
- v1.6.1
- v1.6.0
- v1.5.0
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.0
- v0.15.0
- v0.14.0
- v0.13.0
- v0.12.4
- v0.12.3
- v0.12.2
- v0.12.1
- v0.12.0
- v0.11.0
- v0.10.1
- v0.10.0
- v0.9.3
- v0.9.2
- v0.9.1
- v0.9.0
- v0.8.0
- v0.7.1
- v0.7.0
- v0.6.1
- v0.6.0
- v0.5.3
- v0.5.2
- v0.5.1
- v0.5.0
- v0.4.1
- v0.4.0
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.3
- v0.2.2
- v0.2.1
- v0.1.1
- v0.1.0
- dev-1.28.x-pingandwarm-with-options
This package is auto-updated.
Last update: 2024-11-01 19:39:20 UTC
README
Idiomatic PHP client for Google Cloud Bigtable.
NOTE: This repository is part of Google Cloud PHP. Any support requests, bug reports, or development contributions should be directed to that project.
A high performance NoSQL database service for large analytical and operational workloads.
Installation
To begin, install the preferred dependency manager for PHP, Composer.
Now install this component:
$ composer require google/cloud-bigtable
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.
Notable Client Differences
The handwritten client offered by this package differs from the others in google-cloud-php
in that it more directly wraps our generated clients.
This means some of the idioms and configuration options you are used to may differ slightly. The most notable differences are outlined below:
- A key file is now provided through the
credentials
configuration option as opposed to eitherkeyFile
orkeyFilePath
. - There is now more granular control over retry logic. Please see the
bigtable_client_config.json
file for an example of the configuration which can be passed into the client at construction time. - Exceptions triggered at the network level utilize the base class
Google\ApiCore\ApiException
as opposed toGoogle\Cloud\Core\ServiceException
. - The
authHttpHandler
andhttpHandler
client configuration options are now provided through$credentialsConfig['authHttpHandler']
and$transportConfig['httpHandler']
, respectively. Additionally, please note thehttpHandler
should now return an implementation of Guzzle'sPromiseInterface
.
Authentication
Please see our Authentication guide for more information on authenticating your client. Once authenticated, you'll be ready to start making requests.
When going through the authentication guide, please take note that the handwritten client for this package will more closely follow the conventions outlined for the generated clients.
Sample
require 'vendor/autoload.php'; use Google\Cloud\Bigtable\BigtableClient; $bigtable = new BigtableClient(); $table = $bigtable->table('my-instance', 'my-table'); $rows = $table->readRows(); foreach ($rows as $row) { print_r($row) . 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.
Please see the migration guide to upgrade from V1 of the library to V2.
Next Steps
Take a look at and understand the official documentation.