No description, website, or topics provided.
Clone or download
jdpedrie Prepare v0.82.0 (#1337)
## Google Cloud PHP v0.82.0

### google/cloud-bigquery v1.4.5

* Remove unnecessary ternary expression (#1327)
* Use dedicated PHPUnit assertions (#1331)

### google/cloud-core v1.23.7

* Use combined assignment operators when possible (#1328)
* Remove unused variables passed to closures (#1330)

### google/cloud-datastore v1.5.10

* Use combined assignment operators when possible (#1328)
* Use dedicated PHPUnit assertions (#1331)

### google/cloud-debugger v0.14.2

* Remove unused variables passed to closures (#1330)
* Use dedicated PHPUnit assertions (#1331)

### google/cloud-firestore v0.15.3

* Fix handling of empty sets in Firestore updates (#1316)
* Remove auxiliary variables when they are return right away (#1329)

### google/cloud-spanner v1.11.0

* Use combined assignment operators when possible (#1328)
* Remove unused variables passed to closures (#1330)
* Add support for DML and Partitioned DML (#1309)

### google/cloud-storage v1.9.1

* Use dedicated PHPUnit assertions (#1331)

### google/cloud-vision v0.17.2

* Use dedicated PHPUnit assertions (#1331)
Latest commit 6afb9f9 Oct 8, 2018

README.md

Cloud Firestore for PHP

Idiomatic PHP client for Cloud Firestore.

Latest Stable Version Packagist

NOTE: This repository is part of Google Cloud PHP. Any support requests, bug reports, or development contributions should be directed to that project.

A NoSQL document database built for automatic scaling, high performance, and ease of application development. While the Cloud Firestore interface has many of the same features as traditional databases, as a NoSQL database it differs from them in the way it describes relationships between data objects.

Installation

To begin, install the preferred dependency manager for PHP, Composer.

Now to install just this component:

$ composer require google/cloud-firestore

Or to install the entire suite of components at once:

$ composer require google/cloud

This component requires the gRPC extension. Please see our gRPC installation guide for more information on how to configure the extension.

Authentication

Please see our Authentication guide for more information on authenticating your client. Once authenticated, you'll be ready to start making requests.

Sample

require 'vendor/autoload.php';

use Google\Cloud\Firestore\FirestoreClient;

$firestore = new FirestoreClient();

$collectionReference = $firestore->collection('Users');
$documentReference = $collectionReference->document($userId);
$snapshot = $documentReference->snapshot();

echo "Hello " . $snapshot['firstName'];

Version

This component is considered beta. As such, it should be expected to be mostly stable and we're working towards a release candidate. We will address issues and requests with a higher priority.

Next Steps

  1. Understand the official documentation.
  2. Take a look at in-depth usage samples.