谷歌翻译API服务器端
有没有办法将 Google Translate API 与 PHP(服务器端)结合使用?
Is there a way to use the Google Translate API with PHP (server-side)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
有没有办法将 Google Translate API 与 PHP(服务器端)结合使用?
Is there a way to use the Google Translate API with PHP (server-side)?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
尝试查看 http://code.google.com/p/gtranslate- api-php/ 声称能够做到这一点。请注意,所需文件 (GTranslate.php) 目前似乎仅在该项目的 SVN 存储库中可用。
Try taking a look at http://code.google.com/p/gtranslate-api-php/ which claims to be able to do this. Please note that a required file (GTranslate.php) currently only seems to be available in the SVN repository of this project.
想要在 PHP(服务器端)中使用 Google Translate API,您需要在您的 Composer 文件中插入“google/cloud-translate”和“google/apiclient”,在创建该对象的对象后运行 Composer update 并调用 Translate 方法以下课程:
Want to use Google Translate API with PHP (server-side), you would need to insert "google/cloud-translate" and "google/apiclient" in your composer file, run composer update and call translate method after creating an object of the following class: