PHPackages                             namewithin/auth-client - 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. namewithin/auth-client

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

namewithin/auth-client
======================

Advanced auth for Laravel Passport

2.0(6y ago)041PHPCI failing

Since Mar 13Pushed 1y ago2 watchersCompare

[ Source](https://github.com/namewithin/auth-client)[ Packagist](https://packagist.org/packages/namewithin/auth-client)[ RSS](/packages/namewithin-auth-client/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (8)Dependencies (2)Versions (12)Used By (0)

Auth Client
===========

[](#auth-client)

Requirements
------------

[](#requirements)

- laravel/framework: ~6.0
- laravel/passport: ^7.0

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

[](#installation)

The library can be installed using Composer.

Add vcs repository url to the `composer.json`:

```
"repositories": [
    {
        "type": "vcs",
        "url": "git@github.com:namewithin/auth-client.git"
    }
]
```

Install

```
composer require namewithin/auth-client
```

Usage
-----

[](#usage)

You can define guard with the client provider in the `config/auth.php`

```
'guards' => [
    'client-guard' => [
        'driver-guard' => 'client-driver',
        'provider'     => 'client',
    ],
],
```

Now you can protect your routes, only need to add the auth guard to auth middleware:

```
Route::get('profile', function () {
    // Only authenticated clients may enter...
})->middleware('auth:client-guard');

Route::group([
    'middleware' => ['auth:api,client-guard'], // Only authenticated users and clients may enter...
], function () {
    Route::get('ticket/{id}/history', 'HistoryController@ticket');
});
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 74.2% 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 ~151 days

Recently: every ~27 days

Total

9

Last Release

1409d ago

Major Versions

v1.0.1 → 2.02019-11-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/335e1cf191635400803fd363627f9dc3906f5ed2234d81f1a61f95aa69ad32e6?d=identicon)[namewithin](/maintainers/namewithin)

---

Top Contributors

[![alexeykostenko](https://avatars.githubusercontent.com/u/6564267?v=4)](https://github.com/alexeykostenko "alexeykostenko (23 commits)")[![namewithin](https://avatars.githubusercontent.com/u/265517?v=4)](https://github.com/namewithin "namewithin (5 commits)")[![omaximus](https://avatars.githubusercontent.com/u/8122734?v=4)](https://github.com/omaximus "omaximus (2 commits)")[![kochkarovv](https://avatars.githubusercontent.com/u/73936722?v=4)](https://github.com/kochkarovv "kochkarovv (1 commits)")

### Embed Badge

![Health badge](/badges/namewithin-auth-client/health.svg)

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

###  Alternatives

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[santigarcor/laratrust

This package provides a flexible way to add Role-based Permissions to Laravel

2.3k5.4M43](/packages/santigarcor-laratrust)[overtrue/laravel-follow

User follow unfollow system for Laravel.

1.2k404.7k5](/packages/overtrue-laravel-follow)[jeremy379/laravel-openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

55342.3k2](/packages/jeremy379-laravel-openid-connect)

PHPackages © 2026

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