将Google Firestore连接到php-找不到grpc [英] connecting google firestore to php - grpc not found

查看:45
本文介绍了将Google Firestore连接到php-找不到grpc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此回购操作之后,我正在尝试将php连接到firestore数据库 https://github.com/googleapis/google-cloud-php-firestore .

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

适用于php的Google Cloud Firestore需要安装grpc扩展名.我已经通过pecl安装了grpc,它说它已经完美安装了.但是,每当我尝试运行代码时,它说firestore无法连接,因为找不到grpc扩展名.我在这里附上错误的屏幕截图.我什至已将grpc添加到php.ini文件中,不确定为什么仍会弹出此错误.证明grpc已安装图片 错误图片

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

推荐答案

您发布的链接还包含一个相关的教程:为PHP安装gRPC .

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

这篇关于将Google Firestore连接到php-找不到grpc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆