PHPackages                             meerkatmcr/simple-blocker - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. meerkatmcr/simple-blocker

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

meerkatmcr/simple-blocker
=========================

Simple user-blocking functionality for Laravel 5.x

1.0.1(6y ago)07MITPHP

Since Dec 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/meerkatmcr/simple-blocker)[ Packagist](https://packagist.org/packages/meerkatmcr/simple-blocker)[ RSS](/packages/meerkatmcr-simple-blocker/feed)WikiDiscussions master Synced today

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

simple-blocker
==============

[](#simple-blocker)

Very simple user-blocking functionality for Laravel 5.x

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

[](#installation)

### Notes

[](#notes)

This package assumes that your users table is called `users`. If it is not, publish the migration and edit the table name.

### Method

[](#method)

- Install the package with `composer install meerkatmcr/simple-blocker`
- Perform the database migration `php artisan migrate`
- Add the `MeerkatMcr\SimpleBlocker\Traits\Blockable` trait to your user model.

Usage
-----

[](#usage)

### Blocking and unblocking

[](#blocking-and-unblocking)

The `Blockable` trait provides three methods:

- `block()` block the user
- `unblock()` unblock the user
- `isBlocked()` return `TRUE` if the user is blocked

`block()` and `unblock()` are both fluent, and neither saves the model.

### Middleware

[](#middleware)

The `MeerkatMcr\SimpleBlocker\Middleware\CheckUserBlocked` middleware will abort a request with code 403 if the current user is blocked.

To use it, register it in `app/Http/Kernel.php` as with any other middleware class. See the [Laravel manual](https://laravel.com/docs/6.x/middleware#registering-middleware)for further details.

The abort message is configurable - its key is `simple-blocker.message`. This package publishes its config file (`simple-blocker.php`).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

2

Last Release

2396d ago

### Community

Maintainers

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

---

Top Contributors

[![meerkatmcr](https://avatars.githubusercontent.com/u/58777306?v=4)](https://github.com/meerkatmcr "meerkatmcr (1 commits)")

### Embed Badge

![Health badge](/badges/meerkatmcr-simple-blocker/health.svg)

```
[![Health](https://phpackages.com/badges/meerkatmcr-simple-blocker/health.svg)](https://phpackages.com/packages/meerkatmcr-simple-blocker)
```

###  Alternatives

[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5752.3M18](/packages/directorytree-ldaprecord-laravel)[illuminate/auth

The Illuminate Auth package.

10528.2M1.2k](/packages/illuminate-auth)[althinect/filament-spatie-roles-permissions

3481.1M10](/packages/althinect-filament-spatie-roles-permissions)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6804.7k6](/packages/hasinhayder-tyro)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1563.1k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

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