PHPackages                             mojoblanco/domainos - 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. mojoblanco/domainos

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

mojoblanco/domainos
===================

A laravel package for blacklisting or whitelisting specific email providers or domains

1.1.2(8y ago)2214.0k↓100%5[2 issues](https://github.com/mojoblanco/domainos/issues)MITPHPPHP ~5.6|~7.0

Since May 7Pushed 7y ago2 watchersCompare

[ Source](https://github.com/mojoblanco/domainos)[ Packagist](https://packagist.org/packages/mojoblanco/domainos)[ Docs](https://github.com/mojoblanco/domainos)[ RSS](/packages/mojoblanco-domainos/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (6)Used By (0)

Domainos
========

[](#domainos)

[![Latest Stable Version](https://camo.githubusercontent.com/3c47af960a07982a9c106885bac6965aca737144df8c6403ad1439d799795ae3/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6a6f626c616e636f2f646f6d61696e6f732f762f737461626c65)](https://packagist.org/packages/mojoblanco/domainos)[![Total Downloads](https://camo.githubusercontent.com/0adf1337b96fcb2e7203cfac27b352a0b96d08219adedfe31822173749de30a8/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6a6f626c616e636f2f646f6d61696e6f732f646f776e6c6f616473)](https://packagist.org/packages/mojoblanco/domainos)[![Latest Unstable Version](https://camo.githubusercontent.com/d0ef33d636ce7c2f0846a502de6d98f49bc84bcd5985e0d94547bc194076c233/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6a6f626c616e636f2f646f6d61696e6f732f762f756e737461626c65)](https://packagist.org/packages/mojoblanco/domainos)[![License](https://camo.githubusercontent.com/f783b043ed940b361a730274a4377bc76df2f2d82c52d2750d3ba96f0f09bc6d/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6a6f626c616e636f2f646f6d61696e6f732f6c6963656e7365)](https://packagist.org/packages/mojoblanco/domainos)

A laravel package for allowing or blocking specific email domains

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

[](#installation)

Open your terminal or command prompt, go to the root directory of your Laravel project, then follow the following steps.

1. Run

    ```
    composer require mojoblanco/domainos

    ```
2. Add the provider to the providers array in config/app.php

    *If you are using laravel 5.5, you don't need to place the code below*

    ```
    Mojoblanco\Domainos\DomainosServiceProvider::class,

    ```
3. Run `composer dump-autoload`
4. Publish the config file

    ```
    php artisan vendor:publish --provider="Mojoblanco\Domainos\DomainosServiceProvider" --tag="config"

    ```

Usage
-----

[](#usage)

1. Go to the `config/domainos.php` file and customize it.
    There are two options;
    `block` is for blacklisting domains,
    `allow` is for whitelisting.
2. Go to the validation of the email address and add the following

```
'email' => 'domainos:allow'

```

3. Test the validation

### Notice

[](#notice)

This package can be very useful when you want to prevent or allow specific email addresses during user registration.

### How can you thank me?

[](#how-can-you-thank-me)

You can like this repo, follow me on [github](https://github.com/mojoblanco) and [twitter](https://twitter.com/themojoblanco)Thanks.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

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

Total

3

Last Release

3107d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4370375?v=4)[John Olawale](/maintainers/mojoblanco)[@mojoblanco](https://github.com/mojoblanco)

---

Top Contributors

[![mojoblanco](https://avatars.githubusercontent.com/u/4370375?v=4)](https://github.com/mojoblanco "mojoblanco (21 commits)")

---

Tags

blacklistdomainemaillaravelsecuritywhitelistlaravelsecurityemailsdomainsmojoblanco

### Embed Badge

![Health badge](/badges/mojoblanco-domainos/health.svg)

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

###  Alternatives

[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[iwasherefirst2/laravel-multimail

A package to send mails easily from multiple mail accounts with Laravel

6392.2k](/packages/iwasherefirst2-laravel-multimail)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[coreproc/nova-notification-feed

A Laravel Nova package that adds a notification feed in your Nova app.

10149.1k](/packages/coreproc-nova-notification-feed)[martian/spammailchecker

A laravel package that protect users from entering non-existing/spam email addresses.

422.0k](/packages/martian-spammailchecker)[matthewbdaly/laravel-sms

A Laravel and Lumen integration for matthewbdaly/sms-client to enable sending SMS messages

3529.8k](/packages/matthewbdaly-laravel-sms)

PHPackages © 2026

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