如何将Google App Engine(PHP)与云端数据存储连接? [英] How to connect Google App Engine (PHP) with Cloud Datastore?

查看:130
本文介绍了如何将Google App Engine(PHP)与云端数据存储连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将我的本地开发站点(使用PHP)连接到云数据存储,但不幸的是我不知道如何设置我的代码以访问数据存储。我已经尝试了tomwalder / php-gds的解决方案,但我不知道如何设置代码以与我的网站一起工作。使用composer安装后,我不知道应该修改哪个文件,我的目录中没有config.php文件。也没有关于Datastore for PHP的Google文档。
我打开任何解决方案来将数据存储连接到我的网站。

I am trying to connect my Local Development Site (using PHP) to Cloud Datastore, but unfortunately I do not know how to set up my code to reach the Datastore. I have tried the solution of tomwalder/php-gds, but I do not know, how to set up the code to work with my site. After the installation with composer, I do not know which file should be modified, there is no config.php in my directory. There are also no Google Documentation about Datastore for PHP. I am open for any solution to connect the Datastore with my site.

您能否给我们一些提示,如何开始工作? p>

Can you please give us a few tips, how to start the work?

推荐答案

我建议看看 https://github.com/tomwalder/php-gds 。 Tom刚刚发布了一个本地连接到数据存储的版本,比通过Cloud Datastore更快。

I'd suggest taking a look at https://github.com/tomwalder/php-gds. Tom just released a version that connects natively to the datastore, which is faster than going via Cloud Datastore.

这篇关于如何将Google App Engine(PHP)与云端数据存储连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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