PHPackages                             kosmosx/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. [Framework](/categories/framework)
4. /
5. kosmosx/auth

AbandonedArchivedPackage[Framework](/categories/framework)

kosmosx/auth
============

Auth service for Laravel / Lumen framework.

1.0.0(6y ago)0135MITPHPPHP ^7.1.3

Since Aug 23Pushed 6y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (3)Used By (0)

KosmosX Auth
------------

[](#kosmosx-auth)

[![](https://camo.githubusercontent.com/97f85f046265623c4b26076add9bcc55f9608152c20e78f07076369977c77d05/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e302d677265656e2e737667)](https://camo.githubusercontent.com/97f85f046265623c4b26076add9bcc55f9608152c20e78f07076369977c77d05/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e302d677265656e2e737667) [![](https://camo.githubusercontent.com/38bbfd9727a6f61bd6013f369beacca2f30c38431cc66d8cb09371e9071b67ee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d2533453d352e372d626c75652e737667)](https://camo.githubusercontent.com/38bbfd9727a6f61bd6013f369beacca2f30c38431cc66d8cb09371e9071b67ee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d2533453d352e372d626c75652e737667) [![](https://camo.githubusercontent.com/fb8a9e523786e1002dc45c0483be7cb6285bd7bef0b1faf94ef38b59ab5099dc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c756d656e2d2533453d352e372d626c75652e737667)](https://camo.githubusercontent.com/fb8a9e523786e1002dc45c0483be7cb6285bd7bef0b1faf94ef38b59ab5099dc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c756d656e2d2533453d352e372d626c75652e737667)

### Installation

[](#installation)

```
composer require kosmosx/auth

php artisan kosmosx:publish:auth //if will be use JWT

```

#### Laravel

[](#laravel)

**Add provider in array 'providers' (config/app.php)**

```
Kosmosx\Auth\Providers\ManagerServiceProvider::class

```

**Add to (config/auth.php)**

```
'service_providers' => [
    'jwt' =>  env('AUTH_PROVIDERS', Tymon\JWTAuth\Providers\LaravelServiceProvider::class)
],

'guards' => [
    ...

    'api' => [
        'provider' => 'jwt',
        'driver' => 'jwt',
    ],
],

'providers' => [
    ...

    'jwt' => [
            'driver' => 'eloquent',
            'model' => env('AUTH_MODEL', App\Models\User::class),
        ],
]

```

**Add to .env file**

```
AUTH_PROVIDERS=Tymon\JWTAuth\Providers\LaravelServiceProvider

```

#### Lumen

[](#lumen)

**File bootstrap/app.php**

```
//uncomment this line:
$app->withFacades();
$app->withEloquent();

//Register providers
$app->register(Kosmosx\Auth\ManagerServiceProvider::class);

```

**Add to .env file (Or change config/auth.php key of array 'providers')**

```
AUTH_PROVIDERS=Tymon\JWTAuth\Providers\LumenServiceProvider

```

#### Example

[](#example)

```
AuthService::guard();  //return Illuminate/Guard

AuthService::getUser();  //return HttpException or Auth user

AuthService::refresh();  //return new token of Auth user

and other functions

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

2455d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86b56131c92d8421d2a54614993c2bf00e91b1265de5b88948fd90d00b986d7e?d=identicon)[Fabrizio Cafolla](/maintainers/Fabrizio%20Cafolla)

---

Top Contributors

[![FabrizioCafolla](https://avatars.githubusercontent.com/u/13237032?v=4)](https://github.com/FabrizioCafolla "FabrizioCafolla (10 commits)")

---

Tags

jwtapiframeworklaravelauthlumen

### Embed Badge

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

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

###  Alternatives

[saad/api-debugger

Easily debug your JSON API.

1170.1k](/packages/saad-api-debugger)

PHPackages © 2026

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