PHPackages                             bencoderus/min-auth - 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. bencoderus/min-auth

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

bencoderus/min-auth
===================

This package serves as a token based client authentication system.

1.0(5y ago)7151MITPHPPHP ^7.2.5|^8.0

Since Dec 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bencoderus/min-auth)[ Packagist](https://packagist.org/packages/bencoderus/min-auth)[ Docs](https://github.com/bencoderus/minauth)[ RSS](/packages/bencoderus-min-auth/feed)WikiDiscussions master Synced 4d ago

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

[![Laravel webhook preview](/images/preview.jpg)](/images/preview.jpg)

Min Auth
========

[](#min-auth)

[![Build Status](https://camo.githubusercontent.com/91d532904998a3303e772b32710fa9b2d2dd40d71f89df18c1a59aed5b36bd32/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f62656e636f64657275732f6d696e2d617574682f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/bencoderus/min-auth)[![Latest Stable Version](https://camo.githubusercontent.com/83e59ab73b3ba353a6f43c99e7b7342b55f11823e8ae18044510495269720676/68747470733a2f2f706f7365722e707567782e6f72672f62656e636f64657275732f6d696e2d617574682f76)](//packagist.org/packages/bencoderus/minauth)[![License](https://camo.githubusercontent.com/4708694c64fedea3f7a6edcf9a40f3d31ad097ff6f8843b3d42f2d6cafc20a56/68747470733a2f2f706f7365722e707567782e6f72672f62656e636f64657275732f6d696e2d617574682f6c6963656e7365)](//packagist.org/packages/bencoderus/minaut)

Min Auth is a Laravel package that allows you to create and manage a client based authentication system on your Laravel web application.

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

[](#installation)

This package requires PHP &gt;= 7.2 and above. (Laravel 8 and PHP 8 support are available).

You can install the package via composer:

```
composer require bencoderus/min-auth
```

Publish migration and configurations.

```
php artisan min-auth:install
```

Run migrations

```
php artisan migrate
```

Usage
-----

[](#usage)

#### Min Auth commands

[](#min-auth-commands)

Publish migration and configurations.

```
php artisan min-auth:install
```

Create a client

```
php artisan min-auth:create-client {name}
```

### Using the middleware to protect your routes.

[](#using-the-middleware-to-protect-your-routes)

In your route add `auth.client`

```
Route::get('test', function(){
    return "Hello world";
})->middleware('auth.client');
```

In your controller add `auth.client`

```
public function __construct(){
    $this->middleware('auth.client');
}
```

#### Using the helpers

[](#using-the-helpers)

Import Min Auth Helper

```
use Bencoderus\MinAuth\MinAuth;
```

Create a client

```
MinAuth::createClient($name);
// Optional
MinAuth::createClient($name, $ip, $isBlacklisted);
```

Find a client by API key

```
MinAuth::findByApiKey($apiKey);
```

Blacklist a client

```
MinAuth::blacklistClient($client);
```

Whitelist a client

```
MinAuth::whitelistClient($client);
```

Refresh Client API key

```
MinAuth::refreshApiKey($client);
```

Update client Ip address

```
$ip = "127.0.0.8";
MinAuth::updateIpAddress($client, $ip);
```

#### Configuration

[](#configuration)

You can turn off IP Address verification via config/min-auth.php

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Benjamin Iduwe](https://github.com/bencoderus)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

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

Total

3

Last Release

1869d ago

Major Versions

0.9.1 → 1.02021-04-02

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39214789?v=4)[Benjamin Iduwe](/maintainers/bencoderus)[@bencoderus](https://github.com/bencoderus)

---

Top Contributors

[![bencoderus](https://avatars.githubusercontent.com/u/39214789?v=4)](https://github.com/bencoderus "bencoderus (43 commits)")

---

Tags

phpapiclientlaravelauthAuthenticationbencoderusmin-auth

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bencoderus-min-auth/health.svg)

```
[![Health](https://phpackages.com/badges/bencoderus-min-auth/health.svg)](https://phpackages.com/packages/bencoderus-min-auth)
```

###  Alternatives

[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)[acidjazz/humble

passwordless authentication and detailed sessioning for laravel

15136.5k](/packages/acidjazz-humble)[benbjurstrom/cognito-jwt-guard

A laravel auth guard for JSON Web Tokens issued by Amazon AWS Cognito

1113.1k](/packages/benbjurstrom-cognito-jwt-guard)

PHPackages © 2026

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