job.answiz.com
  • 15
Votes

how can i perform crud operation in cloud firestore in php

to connect with database 

use GoogleCloudFirestoreFirestoreClient;
$projectId = "dshds-221";
$keyFilePath = dsdsds-w2";
$db = new FirestoreClient([
'projectId' => $projectId,
'keyFilePath' => $keyFilePath
]);

now you can execute all examples listed here 

user more examples here

https://github.com/GoogleCloudPlatform/php-docs-samples/tree/master/firestore/src

  • 1
Reply Report