我将在我的Web项目中使用Google Cloud Spaner数据库。所以我要安装作曲家。当我在cmd中运行composer install命令时,它将显示此消息。
Problem 1
- Installation request for google/cloud-spanner ^1.27.1 -> satisfiable by google/cloud-spanner[v1.27.1].
- google/cloud-spanner v1.27.1 requires ext-grpc * -> the requested PHP extension grpc is missing from your system.
我认为这是我的PHP版本缺少某些文件的问题。我对吗?该如何解决?
首先需要安装gRPC for PHP。
在Windows上,您必须手动安装DLL;grpc-1.28.0.tgz
可能需要例如。 WinRAR解压。
并通过extension=php_grpc.dll
中的php.ini
启用它。
有关更多信息,请参见grpc.io。