简体   繁体   English

Symfony2中的Gmail服务

[英]Gmail Service in Symfony2

I need to use the Gmail service in my project in Symfony2. 我需要在Symfony2的项目中使用Gmail服务。 I installed the Google Suite via composer but I noticed that it is really too much for what I do. 我通过作曲家安装了Google Suite,但我发现这样做实在太繁琐了。 I need only the services and Gmail API. 我只需要服务和Gmail API。 Is there a way to just download the Service Gmail and not all of Google ever via composer? 有没有一种方法可以通过作曲家仅下载Service Gmail,而不下载整个Google?

Thanks for the possible response. 感谢您的回应。

I need to use the Gmail service in my project in Symfony2. 我需要在Symfony2的项目中使用Gmail服务。

I'd suggest using an existing package: 我建议使用现有的软件包:

Both packages use google/apiclient interally to access the Google API. 这两个软件包之间都使用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 Suite,但我发现这样做实在太繁琐了。

What is Google Suite? 什么是Google Suite? Which package are you referring to? 您指的是哪个包裹?

I need only the services and Gmail API. 我只需要服务和Gmail API。 Is there a way to just download the Service Gmail and not all of Google ever via composer? 有没有一种方法可以通过作曲家仅下载Service Gmail,而不下载整个Google?

Composer fetches development dependencies. Composer获取开发依赖关系。 That doesn't mean that you have to ship all of the fetched stuff. 这并不意味着您必须运送所有获取的东西。 You can reduce the size of your project by deleting unnecessary parts (before you package for deployment). 您可以通过删除不必要的部分来减少项目的大小(在打包部署之前)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM