webeith / imap-bundle
Symfony2的Imap组件包
dev-master
2014-07-09 21:48 UTC
Requires
- php: >=5.3.2
- symfony/framework-bundle: >=2.0.0
- webeith/php-imap: *
This package is not auto-updated.
Last update: 2024-09-24 02:57:41 UTC
README
使用示例
$this->getContainer()->get('imap')->getMailBox('mailbox_name');
配置 config.yml 示例
webeith_imap: mailboxes: hotmail_user login: "example@hotmail.com" password: "password" port: 995 connection_string: "{imap.gmail.com:993/imap/ssl}INBOX" encoding: "utf-8" attachments_dir: "/tmp/" gmail_user_inbox: login: "example@gmail.com" password: "password" connection_string: "{imap.gmail.com:993/imap/ssl}INBOX" encoding: "utf-8" attachments_dir: "/tmp/"
安装
通过Composer安装
将以下行添加到您的 composer.json
文件中,然后运行 php composer.phar install
或 php composer.phar update
{ "require": { "webeith/imap-bundle": "dev-master" } }
注册组件
要开始使用此组件,请在 app/AppKernel.php
中注册它
public function registerBundles() { $bundles = array( // Other bundles... new Webeith\ImapBundle\WebeithImapBundle(), ); }