PHPackages                             mailboxvalidator/mailboxvalidator-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. mailboxvalidator/mailboxvalidator-bundle

ActiveSymfony-bundle[Mail &amp; Notifications](/categories/mail)

mailboxvalidator/mailboxvalidator-bundle
========================================

Symfony bundle that used MailboxValidator API to validate email in form.

2.1.1(11mo ago)45MITPHPPHP &gt;=5.3CI failing

Since Nov 29Pushed 4mo ago3 watchersCompare

[ Source](https://github.com/MailboxValidator/mailboxvalidator-bundle)[ Packagist](https://packagist.org/packages/mailboxvalidator/mailboxvalidator-bundle)[ Docs](https://www.mailboxvalidator.com)[ RSS](/packages/mailboxvalidator-mailboxvalidator-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (0)

MailboxValidator Symfony Email Validation Bundle
================================================

[](#mailboxvalidator-symfony-email-validation-bundle)

MailboxValidator Symfony Email Validation Bundle enables user to easily validate if an email address is valid, a type of disposable email or free email.

This bundle can be useful in many types of projects, for example

- to validate an user's email during sign up
- to clean your mailing list prior to email sending
- to perform fraud check
- and so on

Note: This bundle only support Symfony 4.3 and onwards.

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

[](#installation)

We recommend the installation via Composer. Open the terminal, navigate to your project root and run the following commands:

```
$ composer require mailboxvalidator/mailboxvalidator-bundle
```

Dependencies
------------

[](#dependencies)

An API key is required for this module to function.

1. Go to [https://www.mailboxvalidator.com](https://www.mailboxvalidator.com/plans#api) to sign up for FREE API plan if you do not have an API key.
2. (If you are at Symfony 4) After obtained your API key, load a `.env` file in your PHP application via `Dotenv::load()`.

```
use Symfony\Component\Dotenv\Dotenv;

$dotenv = new Dotenv();
$dotenv->load(__DIR__.'/.env'); //Your .env file path
```

3. Open your `.env` file and add the following line:

```
MBV_API_KEY=PASTE_YOUR_API_KEY_HERE

```

Notes: You need to install the MailboxValidator PHP Module in order to use this bundle. You can visit  for the source codes.

Usage
-----

[](#usage)

Before using the validator, be sure to add the bundle into the `config/bundles.php` file:

```
// config/bundles.php
return [
    ...
    MailboxValidatorBundle\MailboxValidatorBundle::class => ['all' => true],
];
```

The validators available to validate the email are: single, free and disposable. Each validator validate the email by using MailboxValidator API. For more information, you can visit [Single Validation API](https://www.mailboxvalidator.com/api-single-validation), [Disposable Email API](https://www.mailboxvalidator.com/api-email-disposable) and [Free Email API](https://www.mailboxvalidator.com/api-email-free).

1. To use any one of three validators or use all of the validators, include the following lines in any form controller that handle the validation:

```
use MailboxValidatorBundle\Validator\MBVSingle;
use MailboxValidatorBundle\Validator\MBVDisposable;
use MailboxValidatorBundle\Validator\MBVFree;
```

2. After that, add a new rule to your form field. For example, if you want to validate the disposable email, your rule will be like this:

```
->add('email', EmailType::class, [
			'constraints' => [
				new MBVDisposable([
					//You can also custom a message yourself. For example,
					//'message' => 'This email is disposable. Please enter another email again.',
					]),
				],
			])
```

Copyright
---------

[](#copyright)

Copyright (C) 2024-2026 by MailboxValidator.com

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance64

Regular maintenance activity

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% of commits — single point of failure

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 ~676 days

Total

4

Last Release

333d ago

Major Versions

1.0.0 → 2.0.02020-10-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/cfaef446efd8aa75f70fa16fd70d27e065c288235b40ac5dfbb7884c62bb17e2?d=identicon)[MailboxValidator](/maintainers/MailboxValidator)

---

Top Contributors

[![mailboxvalidator-com](https://avatars.githubusercontent.com/u/283543382?v=4)](https://github.com/mailboxvalidator-com "mailboxvalidator-com (16 commits)")[![chrislim2888](https://avatars.githubusercontent.com/u/3418232?v=4)](https://github.com/chrislim2888 "chrislim2888 (1 commits)")

---

Tags

email-checkeremail-validationemail-validatoremail-verificationmailboxvalidator-apimailboxvalidator-bundlesymfonysymfony-bundlesymfonybundlevalidatoremailemail validationmailboxvalidator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mailboxvalidator-mailboxvalidator-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/mailboxvalidator-mailboxvalidator-bundle/health.svg)](https://phpackages.com/packages/mailboxvalidator-mailboxvalidator-bundle)
```

###  Alternatives

[stephpy/timeline-bundle

Symfony2 bundle to make timeline

192368.4k4](/packages/stephpy-timeline-bundle)[robertotru/to-inline-style-email-bundle

A Symfony2 bundle for using the CssToInlineStyles translator by tijsverkoyen

59384.3k](/packages/robertotru-to-inline-style-email-bundle)[gushphp/to-inline-style-email-bundle

A Symfony2 bundle for using the CssToInlineStyles translator by tijsverkoyen

59311.5k](/packages/gushphp-to-inline-style-email-bundle)[mcfedr/awspushbundle

A set of services to simplify using Aws to send push notifications

40378.6k1](/packages/mcfedr-awspushbundle)

PHPackages © 2026

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