PHPackages                             yaroslawww/laravel-email-domain - 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. yaroslawww/laravel-email-domain

Abandoned → [think.studio/laravel-email-domain](/?search=think.studio%2Flaravel-email-domain)Library[Mail &amp; Notifications](/categories/mail)

yaroslawww/laravel-email-domain
===============================

Check email domain.

1.1.0(2y ago)027MITPHPPHP ^8.0

Since Nov 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dev-think-one/laravel-email-domain)[ Packagist](https://packagist.org/packages/yaroslawww/laravel-email-domain)[ Docs](https://github.com/dev-think-one/laravel-email-domain)[ RSS](/packages/yaroslawww-laravel-email-domain/feed)WikiDiscussions main Synced 3w ago

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

Check email domain.
===================

[](#check-email-domain)

[![Packagist License](https://camo.githubusercontent.com/5ce25b082d5699ebf76e9050a11de04b2a9d6fe085b3b3b72decba5143eee072/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7468696e6b2e73747564696f2f6c61726176656c2d656d61696c2d646f6d61696e3f636f6c6f723d253233346463373166)](https://camo.githubusercontent.com/5ce25b082d5699ebf76e9050a11de04b2a9d6fe085b3b3b72decba5143eee072/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7468696e6b2e73747564696f2f6c61726176656c2d656d61696c2d646f6d61696e3f636f6c6f723d253233346463373166)[![Packagist Version](https://camo.githubusercontent.com/3fd73a2a938fa40f3b8347614077be12dc6db65feb8109b99c202b837c2cb136/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468696e6b2e73747564696f2f6c61726176656c2d656d61696c2d646f6d61696e)](https://packagist.org/packages/think.studio/laravel-email-domain)[![Total Downloads](https://camo.githubusercontent.com/4f0ba1faf991e0342995fc3d4095344978dea3195b8e3a1388a694692457ba9a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468696e6b2e73747564696f2f6c61726176656c2d656d61696c2d646f6d61696e)](https://packagist.org/packages/think.studio/laravel-email-domain)[![Build Status](https://camo.githubusercontent.com/4d50c8af515b009ac8ac7099bee4933965920b4616e2f2782afcffcdfab1ea87/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d656d61696c2d646f6d61696e2f6261646765732f6275696c642e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-email-domain/build-status/main)[![Code Coverage](https://camo.githubusercontent.com/2fd8e3a33d844d01fd3d38055f17825f4d5d68820394e83f72ab575424e58eba/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d656d61696c2d646f6d61696e2f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-email-domain/?branch=main)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4d0fbd2a881413923f342af7a66b1ebda4c023c45674b22395e3a97360613385/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d656d61696c2d646f6d61696e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-email-domain/?branch=main)

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

[](#installation)

Install the package via composer:

```
composer require think.studio/laravel-email-domain
```

You can publish the config and assets files with:

```
php artisan vendor:publish --provider="EmailDomain\ServiceProvider" --tag="config"
php artisan vendor:publish --provider="EmailDomain\ServiceProvider" --tag="storage"
```

Usage
-----

[](#usage)

Example usage:

```
EmailDomainChecker::setDomainsFilePath('path/to.file')->isDomainInList('gmail.com');
EmailDomainChecker::usePublicProviderDomainsFile()->isDomainInList('gmail.com');

$email = 'test@gmail.com';
EmailDomainChecker::usePublicProviderDomainsFile()->isDomainInList(Str::afterLast($email, '@'));
EmailDomainChecker::usePublicProviderDomainsFile()->isEmailDomainInList($email);

// You can add your own groups in config `email-domain.domains_group_files` to check other groups

```

Trait usage:

```
class User extends Model
{
    use HasEmailDomainChecker;
}

$user->email = 'test@gmail.com';

$user->getEmailProviderDomain(); // gmail.com
$user->hasPublicEmailProviderDomain(); // true

```

Credits
-------

[](#credits)

- [![Think Studio](https://camo.githubusercontent.com/8e541bece07d503c85a126b5294865faa00e27371048772f566a0cce8c01fd3a/68747470733a2f2f7961726f736c617777772e6769746875622e696f2f696d616765732f73706f6e736f72732f7061636b616765732f6c6f676f2d7468696e6b2d73747564696f2e706e67)](https://think.studio/)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Total

2

Last Release

1089d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23663794?v=4)[yaroslawww](/maintainers/yaroslawww)[@yaroslawww](https://github.com/yaroslawww)

---

Top Contributors

[![yaroslawww](https://avatars.githubusercontent.com/u/23663794?v=4)](https://github.com/yaroslawww "yaroslawww (6 commits)")

---

Tags

laravelemaildomain

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yaroslawww-laravel-email-domain/health.svg)

```
[![Health](https://phpackages.com/badges/yaroslawww-laravel-email-domain/health.svg)](https://phpackages.com/packages/yaroslawww-laravel-email-domain)
```

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

254168.5k](/packages/erag-laravel-disposable-email)[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[notebrainslab/filament-email-templates

A powerful and flexible Email Template Management plugin for Filament v4 and v5.

121.1k](/packages/notebrainslab-filament-email-templates)

PHPackages © 2026

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