PHPackages                             openbuildings/swiftmailer-filter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. openbuildings/swiftmailer-filter

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

openbuildings/swiftmailer-filter
================================

Whitelist / Blacklist from domains or emails for email sending

0.4.0(6y ago)6179.8k↓33.3%2[1 PRs](https://github.com/OpenBuildings/swiftmailer-filter/pulls)1BSD-3-ClausePHPPHP ^7.1

Since Sep 9Pushed 2y ago10 watchersCompare

[ Source](https://github.com/OpenBuildings/swiftmailer-filter)[ Packagist](https://packagist.org/packages/openbuildings/swiftmailer-filter)[ RSS](/packages/openbuildings-swiftmailer-filter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (8)Used By (1)

Swiftmailer Filter Plugin
=========================

[](#swiftmailer-filter-plugin)

[![Build Status](https://camo.githubusercontent.com/dff1defbf08a30f20189e2bc2a3b2eecdd6fce0f113c10745d640e2484404625/68747470733a2f2f7472617669732d63692e6f72672f4f70656e4275696c64696e67732f73776966746d61696c65722d66696c7465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/OpenBuildings/swiftmailer-filter)[![Code Coverage](https://camo.githubusercontent.com/1c7c02b931ec7d59ab8021869529b35c56d5afe0f6d935e42ae13d75a1ecf536/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4f70656e4275696c64696e67732f73776966746d61696c65722d66696c7465722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/OpenBuildings/swiftmailer-filter/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/19e49a33922d787a0f8daaa47d7cdcf51dcc8c10b273a7f788e804c47fd1e5c2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4f70656e4275696c64696e67732f73776966746d61696c65722d66696c7465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/OpenBuildings/swiftmailer-filter/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/927189cd05f44300179550b4cc392523a98c3e4f04e9f4eb3c4d463216b2bc96/68747470733a2f2f706f7365722e707567782e6f72672f6f70656e6275696c64696e67732f73776966746d61696c65722d66696c7465722f762f737461626c652e706e67)](https://packagist.org/packages/openbuildings/swiftmailer-filter)

A swiftmailer plugin that allows whitelist / blacklist to which emails to perform the sends. This is useful for example when you want to allow emails only to a certain domain in testing / staging

Usage
-----

[](#usage)

```
$mailer = Swift_Mailer::newInstance();

$mailer->registerPLugin(new FilterPlugin([
    new WhiteListFilter(['example.com']),
    new BlacklistFilter(['test4@example.com, test5@example.com'])
]));
```

First argument is whitelist filter, second is blacklist filter, they both allow array of emails or domain names. If you assign a domain, all emails from that domain will be whitelisted / blacklisted.

License
-------

[](#license)

Copyright (c) 2015, Clippings Ltd. Developed by Ivan Kerin as part of [clippings.com](http://clippings.com)

Under BSD-3-Clause license, read LICENSE file.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~469 days

Recently: every ~587 days

Total

6

Last Release

2277d ago

PHP version history (3 changes)0.1.0PHP &gt;=5.3.2

0.2.0PHP &gt;=5.4

0.4.0PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/506129?v=4)[Harry Dobrev](/maintainers/hkdobrev)[@hkdobrev](https://github.com/hkdobrev)

![](https://avatars.githubusercontent.com/u/4113307?v=4)[Danail Kyosev](/maintainers/dkyosev)[@dkyosev](https://github.com/dkyosev)

![](https://avatars.githubusercontent.com/u/7592650?v=4)[Evstati Zarkov](/maintainers/EZarkov)[@EZarkov](https://github.com/EZarkov)

![](https://avatars.githubusercontent.com/u/745771?v=4)[Filip Georgiev](/maintainers/phgeorgiev)[@phgeorgiev](https://github.com/phgeorgiev)

![](https://avatars.githubusercontent.com/u/490439?v=4)[Zdravko Evstatiev](/maintainers/zedevs)[@zedevs](https://github.com/zedevs)

---

Top Contributors

[![ivank](https://avatars.githubusercontent.com/u/4976?v=4)](https://github.com/ivank "ivank (6 commits)")[![AngelGenchev95](https://avatars.githubusercontent.com/u/41321846?v=4)](https://github.com/AngelGenchev95 "AngelGenchev95 (4 commits)")[![hkdobrev](https://avatars.githubusercontent.com/u/506129?v=4)](https://github.com/hkdobrev "hkdobrev (2 commits)")[![stanstst](https://avatars.githubusercontent.com/u/9391542?v=4)](https://github.com/stanstst "stanstst (1 commits)")[![trayanivanov](https://avatars.githubusercontent.com/u/10871511?v=4)](https://github.com/trayanivanov "trayanivanov (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/openbuildings-swiftmailer-filter/health.svg)

```
[![Health](https://phpackages.com/badges/openbuildings-swiftmailer-filter/health.svg)](https://phpackages.com/packages/openbuildings-swiftmailer-filter)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M228](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
