如何使用 PHP Parse SDK 连接到 mongodb Parse-Server?

How to connect to a mongodb Parse-Server with the PHP Parse SDK?

我有一个 Parse 服务器 运行 并且可以很好地使用我的 Swift 代码。现在,我想将此 MongoDB 服务器连接到我的 PHP 代码。但是我找不到任何关于如何做到这一点的文档。

目前,我有这段代码:

ParseClient::initialize( $app_id, $rest_key, $master_key );

如何更新它以添加我的服务器 URL?

谢谢!

由于我也遇到了一些问题并且资源分散,所以我将它们分组在这个答案中,我知道这只是链接,但这些链接是由 parse 提供的,wong 在即将到来的未来。

我找到了这个例子 https://github.com/ParsePlatform/parse-server-example

这里提到了一些关于迁移的更详细的信息 https://parse.com/docs/server/guide#migrating

可以在此处跟踪迁移工具的问题 https://github.com/ParsePlatform/parse-server/wiki

这里有一个关于此的 wiki 页面 https://github.com/ParsePlatform/parse-server/wiki

最后,你可以在这里找到整个博客 http://blog.parse.com/announcements/introducing-parse-server-and-the-database-migration-tool/

Parse 更新了他们的 PHP SDK,现在有一个新的专用函数来引用服务器 URL,如下所示:

ParseClient::setServerURL('http://your-parse-server.com');

希望对其他人有所帮助!