PHPackages                             pavlakis/allowed-emails - 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. pavlakis/allowed-emails

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

pavlakis/allowed-emails
=======================

An email allowed list (whitelist) checker.

1.1.0(5y ago)177.9k↓18.1%MITPHPPHP &gt;=7.4

Since Aug 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pavlakis/allowed-emails)[ Packagist](https://packagist.org/packages/pavlakis/allowed-emails)[ RSS](/packages/pavlakis-allowed-emails/feed)WikiDiscussions main Synced 2d ago

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

pavlakis/allowed-emails
=======================

[](#pavlakisallowed-emails)

[![Build Status](https://camo.githubusercontent.com/5336431efcb59c3d09d83faa8b7b95a270ed54dab4064f66d433ba2612abc92f/68747470733a2f2f7472617669732d63692e6f72672f7061766c616b69732f616c6c6f7765642d656d61696c732e737667)](https://travis-ci.org/pavlakis/allowed-emails)[![Mutation testing badge](https://camo.githubusercontent.com/45d3d7bff5d89d6b22060cf0ee989a14a0bef037810b4b0a408f7465da6fdb33/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532467061766c616b6973253246616c6c6f7765642d656d61696c732532466d61696e)](https://dashboard.stryker-mutator.io/reports/github.com/pavlakis/allowed-emails/main)[![codecov](https://camo.githubusercontent.com/cdcfb2194bebd8d2b6d9d9eda35ec20906f978279d30c3dbf766bca73afdca6a/68747470733a2f2f636f6465636f762e696f2f67682f7061766c616b69732f616c6c6f7765642d656d61696c732f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/pavlakis/allowed-emails)[![PHPStan](https://camo.githubusercontent.com/441b5874ce4df0a2defc892979c96c46889b69cb32119d04f0b48626349f8bc9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/phpstan/phpstan)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

`pavlakis/allowed-emails` is a simple package to check allowed emails (aka whitelists) within a predefined email list, and a list of email domains.

Usage
-----

[](#usage)

Install the package by running:

```
composer require pavlakis/allowed-emails
```

Can instantiate the `AllowedEmailList` class directly or use the following two named-constructors:

- `withAllowedAliases`
- `withoutAllowedAliases`

The parameters required are:

- An array of emails `array`These emails will be validated.
- An array of email domains `array`These email domains will be validated.

If not using the named-constructors, the `allowAlias` boolean flag is also a required parameter. Setting that to `true` will treat an email with an alias the same way as the email without the alias e.g. it will match `me+alias@example.com`to `me@example.com`.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

3

Last Release

1838d ago

PHP version history (2 changes)1.0.0PHP ^7.4

1.1.0PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/673223?v=4)[Antonios Pavlakis](/maintainers/pavlakis)[@pavlakis](https://github.com/pavlakis)

---

Top Contributors

[![pavlakis](https://avatars.githubusercontent.com/u/673223?v=4)](https://github.com/pavlakis "pavlakis (5 commits)")

---

Tags

email-whitelistphpwhitelist

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/pavlakis-allowed-emails/health.svg)

```
[![Health](https://phpackages.com/badges/pavlakis-allowed-emails/health.svg)](https://phpackages.com/packages/pavlakis-allowed-emails)
```

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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