PHPackages                             xynnn/blacklisted-email-validator-bundle - 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. xynnn/blacklisted-email-validator-bundle

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

xynnn/blacklisted-email-validator-bundle
========================================

An extended email address validator which validates against blacklisted hostnames for Symfony 2

1.0.0(10y ago)46951[1 PRs](https://github.com/xyNNN/BlacklistedEmailValidatorBundle/pulls)GNU LGPL v3.0PHPPHP &gt;=5.6

Since Jan 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/xyNNN/BlacklistedEmailValidatorBundle)[ Packagist](https://packagist.org/packages/xynnn/blacklisted-email-validator-bundle)[ Docs](https://github.com/xyNNN/BlacklistedEmailValidatorBundle)[ RSS](/packages/xynnn-blacklisted-email-validator-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (3)Used By (0)

BlacklistedEmailValidatorBundle
===============================

[](#blacklistedemailvalidatorbundle)

[![Code Coverage](https://camo.githubusercontent.com/0c7cb9cd242b5e8355958d7dfb4e8a5c2b07f383579aaa98f953dd666b00fa48/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f78794e4e4e2f426c61636b6c6973746564456d61696c56616c696461746f7242756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/xyNNN/BlacklistedEmailValidatorBundle/?branch=master)[![Build Status](https://camo.githubusercontent.com/1bb1471289b8edfe20cd509b0cfa1355bc44d0cff9e9fd61fd4ba64d3cf5393f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f78794e4e4e2f426c61636b6c6973746564456d61696c56616c696461746f7242756e646c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/xyNNN/BlacklistedEmailValidatorBundle/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a5c4bf42364653bc119ded5fda67ac8ded0ac8b3df2ff38521d70b965eb10b29/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f78794e4e4e2f426c61636b6c6973746564456d61696c56616c696461746f7242756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/xyNNN/BlacklistedEmailValidatorBundle/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/643b2d87d1024784b28100495cbdfa6bb54d93befbc56966203039710a9ff71b/68747470733a2f2f706f7365722e707567782e6f72672f78796e6e6e2f626c61636b6c69737465642d656d61696c2d76616c696461746f722d62756e646c652f762f737461626c65)](https://packagist.org/packages/xynnn/blacklisted-email-validator-bundle) [![Total Downloads](https://camo.githubusercontent.com/d2098f564d894e2f73a3d5b4af4018af10908bf101102ca2c01c852e1824e8ed/68747470733a2f2f706f7365722e707567782e6f72672f78796e6e6e2f626c61636b6c69737465642d656d61696c2d76616c696461746f722d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/xynnn/blacklisted-email-validator-bundle) [![License](https://camo.githubusercontent.com/18997152b78b59efc5d743497673135f0fcef19026b465dd99af5daf05b3af15/68747470733a2f2f706f7365722e707567782e6f72672f78796e6e6e2f626c61636b6c69737465642d656d61696c2d76616c696461746f722d62756e646c652f6c6963656e7365)](https://packagist.org/packages/xynnn/blacklisted-email-validator-bundle)

An extended email address validator which validates against blacklisted hostnames for Symfony 2. It's designed for easy usage! Install it in a Symfony project or also use it as framework-agnostic library.

Requirements
------------

[](#requirements)

- PHP 5.6 and higher
- Symfony 2.7 and higher

Installation
------------

[](#installation)

Install this bundle with composer:

```
composer require xynnn/blacklisted-email-validator-bundle

```

Register the bundle in `app/AppKernel.php`

```
public function registerBundles()
{
  $bundles = [
    // ...
    new Xynnn\BlacklistedEmailValidatorBundle\XynnnBlacklistedEmailValidatorBundle(),
  ];
}

```

Usage
-----

[](#usage)

Add the new registered Constraint to your models or get it from the service container as a standalone service like every time. For more information about the Symfony validation package please look at [The Symfony Book](http://symfony.com/doc/current/book/validation.html).

Normally without to adjust the configuration it will blacklist the hostnames which are defined in the service definition under `Resources/config/services.xml`. You can override these defaults with the provided configuration ability.

```
xynnn_blacklisted_email_validator:
    strict: true // Enable strict mode for email validator
    hosts: ["domain1.com", "domain2.com"]

```

Authors
-------

[](#authors)

**Philipp Bräutigam**

- [github/xyNNN](https://github.com/xyNNN)
- [twitter/pbraeutigam](http://twitter.com/pbraeutigam)

License
-------

[](#license)

Copyright (c) 2016 Philipp Bräutigam
This repository is released under the GNU LGPL v3.0 license.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3758d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/45e22e78145872f5e2c8abca2efba7f17a4209a180217522dbfd785f8b87b32b?d=identicon)[xyNNN](/maintainers/xyNNN)

---

Tags

symfonyvalidatoremailblacklist

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xynnn-blacklisted-email-validator-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/xynnn-blacklisted-email-validator-bundle/health.svg)](https://phpackages.com/packages/xynnn-blacklisted-email-validator-bundle)
```

###  Alternatives

[lexik/translation-bundle

This bundle allows to import translation files content into the database and provide a GUI to edit translations.

4362.7M19](/packages/lexik-translation-bundle)[artgris/filemanager-bundle

FileManager is a simple Multilingual File Manager Bundle for Symfony

182420.8k9](/packages/artgris-filemanager-bundle)[jbtronics/settings-bundle

A symfony bundle to easily create typesafe, user-configurable settings for symfony applications

9546.7k2](/packages/jbtronics-settings-bundle)[stampie/stampie-bundle

This bundle provides integration for Stampie Email Library

25222.1k](/packages/stampie-stampie-bundle)

PHPackages © 2026

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