webeith / spamassassin-bundle
Symfony2 的 Spamassassin 扩展包
dev-master
2014-07-10 08:54 UTC
Requires
- php: >=5.3.2
- symfony/framework-bundle: >=2.0.0
- webeith/php-spamassassin: *
This package is not auto-updated.
Last update: 2024-09-24 03:33:44 UTC
README
使用示例
$this->getContainer()->get('spamassassin');
配置 config.yml 示例
webeith_spamassassin: hostname: "localhost" port: 783 socketPath: ~ protocolVersion: "1.5" enableZlib: true
安装
通过 Composer 安装
将以下行添加到您的 composer.json
文件中,然后运行 php composer.phar install
或 php composer.phar update
{ "require": { "webeith/spamassassin-bundle": "dev-master" } }
注册扩展包
要开始使用此扩展包,请在 app/AppKernel.php
中注册它
public function registerBundles() { $bundles = array( // Other bundles... new Webeith\SpamassassinBundle\WebeithSpamassassinBundle(), ); }