webeith/imap-bundle

Symfony2的Imap组件包

安装数: 54,805

依赖关系: 0

建议者: 0

安全性: 0

星标: 2

关注者: 2

分支: 5

公开问题: 1

类型:symfony-bundle

dev-master 2014-07-09 21:48 UTC

This package is not auto-updated.

Last update: 2024-09-24 02:57:41 UTC


README

License Total Downloads

使用示例

$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 installphp composer.phar update

{
    "require": {
        "webeith/imap-bundle": "dev-master"
    }
}

注册组件

要开始使用此组件,请在 app/AppKernel.php 中注册它

public function registerBundles()
{
    $bundles = array(
        // Other bundles...
        new Webeith\ImapBundle\WebeithImapBundle(),
    );
}