connecting google firestore to php - grpc not found

大城市里の小女人 提交于 2021-01-29 07:00:43

问题


I am trying to connect php to firestore database following this repo https://github.com/googleapis/google-cloud-php-firestore.

Google Cloud Firestore for php requires grpc extension to be installed. I have installed grpc through pecl and it says it is perfectly installed. But whenever I try to run the code, it says firestore could not connect because grpc extension could not be found. I am attaching the screenshots of errors here. I have even added grpc to php.ini file, not sure why this error still pops up.Proof that grpc is installed image Error image


回答1:


From php extensions check php_grpc, other wise it will be available for operations you do, secondly from php.ini add extension=php_grpc.dll




回答2:


The link you've posted also features one relevant tutorial: Install gRPC for PHP.



来源:https://stackoverflow.com/questions/54541066/connecting-google-firestore-to-php-grpc-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!