PHPackages                             laravel-ready/blacklist-whitelist - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. laravel-ready/blacklist-whitelist

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

laravel-ready/blacklist-whitelist
=================================

Simple domain and email blacklist/whitelist package

1.0.0(3y ago)113MITPHPPHP ^8.1 || ^8.0

Since Mar 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/laravel-ready/blacklist-whitelist)[ Packagist](https://packagist.org/packages/laravel-ready/blacklist-whitelist)[ RSS](/packages/laravel-ready-blacklist-whitelist/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (11)Versions (2)Used By (0)

BlacklistWhitelist
==================

[](#blacklistwhitelist)

[![BlacklistWhitelist](https://camo.githubusercontent.com/57bf71894fe67a7b35221d94471741df264d865a0738fbea91c976a6522290c6/68747470733a2f2f707265766965772e647261676f6e2d636f64652e70726f2f4c61726176656c52656164792f626c61636b6c6973742d77686974656c6973742e7376673f6272616e643d6c61726176656c)](https://github.com/laravel-ready/blacklist-whitelist)

[![Stable Version](https://camo.githubusercontent.com/5348c2360ebf207e8e540991c4ff250a0e070d201501b5e1db8409978ad7cc58/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6c61726176656c2d72656164792f626c61636b6c6973742d77686974656c6973743f6c6162656c3d737461626c65267374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-ready/blacklist-whitelist)[![Unstable Version](https://camo.githubusercontent.com/85afbac0745eb275d863cee4b1701a70c0e30315d27990b00f1abd553b8761e8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f756e737461626c652d6465762d2d6d61696e2d6f72616e67653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-ready/blacklist-whitelist)[![Total Downloads](https://camo.githubusercontent.com/948c42268303bdc3563f50d40a9b6c2ad5befe69166c22858ca35be3e581db75/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c61726176656c2d72656164792f626c61636b6c6973742d77686974656c6973742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/laravel-ready/blacklist-whitelist)[![License](https://camo.githubusercontent.com/5b19b2148f23ad38ed91e218483cb15d7de4136f1ac83864d95e58ab43bdd5a9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c61726176656c2d72656164792f626c61636b6c6973742d77686974656c6973742e7376673f7374796c653d666c61742d737175617265)](LICENSE)

📂 About
-------

[](#-about)

Simple domain and email blacklist/whitelist package...

📦 Installation
--------------

[](#-installation)

Get via composer

```
composer require laravel-ready/blacklist-whitelist
```

⚙️ Configs
----------

[](#️-configs)

```
php artisan vendor:publish --tag=blacklist-whitelist-config
```

Migrations
----------

[](#migrations)

```
# publish migrations
php artisan vendor:publish --tag=blacklist-whitelist-migrations

# apply migrations
php artisan migrate --path=/database/migrations/laravel-ready/blacklist-whitelist
```

📝 Usage
-------

[](#-usage)

```
use LaravelReady\BlacklistWhitelist\Enums\BlockType;
use LaravelReady\BlacklistWhitelist\BlacklistWhitelist;

// add domain to blacklist or whitelist
BlacklistWhitelist::subject('example.com', BlockType::Blacklist);
BlacklistWhitelist::subject('example.com', BlockType::Whitelist);

// email example
BlacklistWhitelist::subject('email@example.com', BlockType::Blacklist);

// any subject
BlacklistWhitelist::subject('TEST', BlockType::Blacklist);

// check subject
BlacklistWhitelist::isBlocked('example.com');

// check allowed subject
BlacklistWhitelist::isAllowed('example.com');
```

⚓ Credits
---------

[](#-credits)

- This project was generated by the **[packager](https://github.com/laravel-ready/packager)**.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

1144d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a8c5a4a2047094867ebe437462b827160e660b5e7bfbad68b57f8d255890d42a?d=identicon)[relliv](/maintainers/relliv)

---

Top Contributors

[![relliv](https://avatars.githubusercontent.com/u/17010054?v=4)](https://github.com/relliv "relliv (11 commits)")

---

Tags

blacklistblocklistlaravelwhitelistlaravelblacklistwhitelistblockerban list

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/laravel-ready-blacklist-whitelist/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-ready-blacklist-whitelist/health.svg)](https://phpackages.com/packages/laravel-ready-blacklist-whitelist)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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