Symfony2 中的 Gmail 服务

Gmail Service in Symfony2

我需要在 Symfony2 的项目中使用 Gmail 服务。我通过 composer 安装了 Google 套件,但我注意到它对我所做的事情来说实在是太多了。我只需要服务和 Gmail API。有没有办法通过作曲家只下载服务 Gmail 而不是所有 Google?

感谢您的回复。

I need to use the Gmail service in my project in Symfony2.

我建议使用现有的软件包:

两个包都在内部使用 google/apiclient 来访问 Google API。

I installed the Google Suite via composer but I noticed that it is really too much for what I do.

什么是 Google 套件?您指的是哪个包裹?

I need only the services and Gmail API. Is there a way to just download the Service Gmail and not all of Google ever via composer?

Composer 获取开发依赖项。这并不意味着您必须运送所有获取的东西。您可以通过删除不必要的部分来减小项目的大小(在打包部署之前)。