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

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

sitic/auth
==========

Users with OAuth, Password Reset, Email Change, Roles &amp; Permissions, REST API

00PHP

Since Sep 14Pushed 4y agoCompare

[ Source](https://github.com/SITICSK/auth)[ Packagist](https://packagist.org/packages/sitic/auth)[ RSS](/packages/sitic-auth/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Auth
====

[](#auth)

This package is for User Management. It allows to CRUD users, get OAuth Token, Change Email / Password.

### LUMEN Implementation

[](#lumen-implementation)

### 1. Install the package

[](#1-install-the-package)

```
composer require sitic/auth

```

### 2. Add in **bootstrap/app.php**

[](#2-add-in-bootstrapappphp)

**Route Middlewares**

```
/*
|--------------------------------------------------------------------------
| Register Middleware
|--------------------------------------------------------------------------
|
| Next, we will register the middleware with the application. These can
| be global middleware that run before and after each request into a
| route or middleware that'll be assigned to some specific routes.
|
*/
$app->routeMiddleware([
    'auth' => App\Http\Middleware\Authenticate::class,
    'permission' => Spatie\Permission\Middlewares\PermissionMiddleware::class,
    'role'       => Spatie\Permission\Middlewares\RoleMiddleware::class,
]);
```

**Providers**

```
/*
|--------------------------------------------------------------------------
| Register Service Providers
|--------------------------------------------------------------------------
|
| Here we will register all of the application's service providers which
| are used to bind services into the container. Service providers are
| totally optional, so you are not required to uncomment this line.
|
*/
$app->register(\Sitic\Auth\AuthServiceProvider::class);
```

**Application Routes**

```
/*
|--------------------------------------------------------------------------
| Load The Application Routes
|--------------------------------------------------------------------------
|
| Next we will include the routes file so that they can all be added to
| the application. This will provide all of the URLs the application
| can respond to, as well as the controllers that may handle them.
|
*/
\Dusterio\LumenPassport\LumenPassport::routes($app, ['prefix' => 'api/v1/oauth']);
```

### 4. Install Auth

[](#4-install-auth)

```
php artisan sitic:auth

```

### 5. Run migrations

[](#5-run-migrations)

```
php artisan migrate

```

### 7. Install passport and place output in .env file

[](#7-install-passport-and-place-output-in-env-file)

```
php artisan passport:install

output to .env file

MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"

PASSPORT_LOGIN_ENDPOINT=/api/v1/oauth/token
PASSPORT_CLIENT_ID=
PASSPORT_CLIENT_SECRET=

```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/121a616012e422c956992e79f509b982a804950026b2a79dbc426250e156d7ea?d=identicon)[DavidPuzder](/maintainers/DavidPuzder)

### Embed Badge

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

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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