webeith/spamassassin-bundle

Symfony2 的 Spamassassin 扩展包

安装次数: 26,723

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 1

开放性问题: 0

类型:symfony-bundle

dev-master 2014-07-10 08:54 UTC

This package is not auto-updated.

Last update: 2024-09-24 03:33:44 UTC


README

License Total Downloads

使用示例

$this->getContainer()->get('spamassassin');

配置 config.yml 示例

webeith_spamassassin:
    hostname:        "localhost"
    port:            783
    socketPath:      ~
    protocolVersion: "1.5"
    enableZlib:      true

安装

通过 Composer 安装

将以下行添加到您的 composer.json 文件中,然后运行 php composer.phar installphp composer.phar update

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

注册扩展包

要开始使用此扩展包,请在 app/AppKernel.php 中注册它

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