PHPackages                             mailboxvalidator/mailboxvalidator-cakephp - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. mailboxvalidator/mailboxvalidator-cakephp

ActiveCakephp-plugin[Validation &amp; Sanitization](/categories/validation)

mailboxvalidator/mailboxvalidator-cakephp
=========================================

MailboxValidator plugin for CakePHP

1.1.2(1y ago)314MITPHP

Since Nov 23Pushed 6mo ago2 watchersCompare

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

READMEChangelog (8)Dependencies (1)Versions (9)Used By (0)

MailboxValidator CakePHP Email Validation Package
=================================================

[](#mailboxvalidator-cakephp-email-validation-package)

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

This package 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

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

[](#installation)

Open the terminal, locate to your project root and run the following command :

`composer require mailboxvalidator/mailboxvalidator-cakephp`

If you want to manually install this plugin, firstly clone the plugin folder to the plugins folder under your website project. After that, add the following line into your project's composer.json file like this:

```
{
    ....
    "autoload": {
        "psr-4": {
            ....
            "MailboxValidatorCakePHP\\": "plugins/mailboxvalidator-cakephp/src/"
        }
    },
}
```

Remember to run this command to autoload our plugin:

```
composer dumpautoload
```

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

[](#dependencies)

An API key is required for this module to function.

Go to  to sign up for FREE API plan and you'll be given an API key.

After you get your API key, open your config/bootstrap.php and add the following line:

```
Configure::write('MBV_API_KEY','PASTE_YOUR_API_KEY_HERE');
```

Functions
---------

[](#functions)

### single (email\_address)

[](#single-email_address)

Performs email validation on the supplied email address.

### disposable (email\_address)

[](#disposable-email_address)

Check if the supplied email address is from a disposable email provider.

### free (email\_address)

[](#free-email_address)

Check if the supplied email address is from a free email provider.

Usage
-----

[](#usage)

Include this line in any form controller that handle validation:

```
use MailboxValidatorCakePHP\Controller\MailboxValidatorController;
```

In any form validation method, before the $validator declare this line:

```
$MBV = new MailboxValidatorController();
```

Add the below line right after the $validator:

```
->setProvider('mbv', $MBV)
```

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', 'disposable', [
        'rule' => 'disposable',
        'provider' => 'mbv',
        'message' => 'Invalid email address. Please enter a non-disposable email address.',
])
```

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).

Errors
------

[](#errors)

error\_codeerror\_message10000Missing parameter.10001API key not found.10002API key disabled.10003API key expired.10004Insufficient credits.10005Unknown error.Copyright
---------

[](#copyright)

Copyright (C) 2018-2026 by MailboxValidator.com,

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance54

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~306 days

Recently: every ~523 days

Total

8

Last Release

623d ago

### 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 (20 commits)")

---

Tags

cakephpemail-validationemail-verificationfree-email-detectionmailboxvalidatormailboxvalidator-apicakephpemail validationmailboxvalidator

### Embed Badge

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

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

###  Alternatives

[cakephp/debug_kit

CakePHP Debug Kit

84114.4M160](/packages/cakephp-debug-kit)[cakephp/bake

Bake plugin for CakePHP

11211.7M190](/packages/cakephp-bake)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

333972.2k49](/packages/dereuromark-cakephp-tools)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308914.0k25](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1882.3M40](/packages/dereuromark-cakephp-ide-helper)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

131237.3k13](/packages/dereuromark-cakephp-tinyauth)

PHPackages © 2026

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