PHPackages                             insign/dumb-emails-validator - 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. insign/dumb-emails-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

insign/dumb-emails-validator
============================

Laravel validator for common email domain typos

v0.0.15(1y ago)01.2kMITPHPPHP ^7.4|^8.0

Since Jan 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/insign/laravel-dumb-emails-validator)[ Packagist](https://packagist.org/packages/insign/dumb-emails-validator)[ RSS](/packages/insign-dumb-emails-validator/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (4)Versions (16)Used By (0)

Laravel Dumb Emails Validator
=============================

[](#laravel-dumb-emails-validator)

This package provides a custom validator for Laravel that checks for common typos in email domains.

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

[](#installation)

1. Install the package via Composer:

    ```
    composer require insign/laravel-dumb-emails-validator
    ```
2. Publish the config file (optional):

    ```
    php artisan vendor:publish --provider="insign\DumbEmailsValidator\DumbEmailsValidatorServiceProvider"
    ```

Usage
-----

[](#usage)

Use the `dumb_email` rule in your validation rules:

```
use Illuminate\Support\Facades\Validator;

$validator = Validator::make($request->all(), [
    'email' => 'required|email|dumb_email',
]);

if ($validator->fails()) {
    // Handle validation errors
    dd($validator->errors());
}
```

Customization
-------------

[](#customization)

You can customize the list of domain corrections, and the error message in the `config/dumb-emails.php` file.

```
return [
    'corrections' => [
        'gmal.com' => 'gmail.com',  // Add your custom corrections here
        // ...
    ],

    'message' => "Did you mean @:correct_domain?" // Change the default message, you can use :attribute and :correct_domain placeholders
];
```

The `:attribute` placeholder will be replaced with the field name (e.g., "email"), and `:correct_domain` will be replaced with the suggested correct domain.

```

**6. `LICENSE`**

```

```
        DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                Version 2, December 2004

```

Copyright (C) 2004 Sam Hocevar

Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

```
        DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE

```

TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

1. You just DO WHAT THE FUCK YOU WANT TO.

```

**How to Use in Your Laravel Project**

1.  **Create the extension directory:**  In your Laravel project's root, create a directory like `packages/your-vendor/laravel-dumb-emails-validator` (replace `your-vendor` with your vendor name, e.g., your GitHub username).
2.  **Place the files:** Put the files from above (`src/`, `config/`, `README.md`, `LICENSE`) into the `laravel-dumb-emails-validator` directory.
3.  **Composer:** In your project's main `composer.json`, add the following to the `autoload` section (under `psr-4`):

    ```json
    "autoload": {
        "psr-4": {
            "App\\": "app/",
            // ... other autoload entries
            "insign\\DumbEmailsValidator\\": "packages/your-vendor/laravel-dumb-emails-validator/src"
        }
    },
    ```
    And add in the `repositories` section:

    ```json
    "repositories": [
        {
            "type": "path",
            "url": "packages/your-vendor/laravel-dumb-emails-validator"
        }
    ]
    ```

4.  **Install:** Run `composer require your-vendor/laravel-dumb-emails-validator`
5.  **Publish Config:** Run `php artisan vendor:publish --provider="insign\DumbEmailsValidator\DumbEmailsValidatorServiceProvider" --tag="config"`
6.  **Register Service Provider:** Add the provider to your `config/app.php`:

    ```php
    'providers' => [
        // ...
        insign\DumbEmailsValidator\DumbEmailsValidatorServiceProvider::class,
    ],
    ```

Now you can use the `dumb_email` validation rule as shown in the `README.md`. Remember to adjust the vendor name and namespaces as needed if you change them.

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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

Total

15

Last Release

530d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/934b53b68624e78343e3f3367897cbaf5fb01475511a1650d2c99c972c810ec6?d=identicon)[insign](/maintainers/insign)

---

Top Contributors

[![insign](https://avatars.githubusercontent.com/u/1113045?v=4)](https://github.com/insign "insign (16 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/insign-dumb-emails-validator/health.svg)

```
[![Health](https://phpackages.com/badges/insign-dumb-emails-validator/health.svg)](https://phpackages.com/packages/insign-dumb-emails-validator)
```

###  Alternatives

[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

76518.2M120](/packages/laravel-mcp)[wendelladriel/laravel-validated-dto

Data Transfer Objects with validation for Laravel applications

761621.7k17](/packages/wendelladriel-laravel-validated-dto)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)[sunspikes/clamav-validator

Custom Laravel anti-virus validator for file uploads using ClamAV.

3712.0M5](/packages/sunspikes-clamav-validator)[propaganistas/laravel-disposable-email

Disposable email validator

6012.9M7](/packages/propaganistas-laravel-disposable-email)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2422.3M6](/packages/laravel-validation-rules-credit-card)

PHPackages © 2026

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