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

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

kerchuma222/session-auth
========================

1.1.1(10y ago)020PHPPHP &gt;=5.4.0

Since Aug 10Pushed 10y ago2 watchersCompare

[ Source](https://github.com/KerchumA222/session-auth)[ Packagist](https://packagist.org/packages/kerchuma222/session-auth)[ RSS](/packages/kerchuma222-session-auth/feed)WikiDiscussions master Synced 1mo ago

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

Session Based Authentication
============================

[](#session-based-authentication)

Laravel 5 Session Authentication driver.

Implemented Features
--------------------

[](#implemented-features)

- Session level persistence for User information retrieved from other application

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

[](#installation)

To install this driver in your application, add the following to your `composer.json` file

```
{
  ...
  "require": {
    "laravel/framework": "5.*",
    ...
    "KerchumA222/session-auth": "3.*",
  },
  ...
  "repositories": [{
    "type": "vcs",
    "url": "https://github.com/KerchumA222/session-auth"
  }],
  ...
}
```

Then run `composer update`. NOTE: You may have to run composer with the `--prefer-source` flag in order to install this from GitHub. You will also need git installed on your machine. This is temporary and will be resolved when this is hosted on packagist.

Once you have finished downloading the package from GitHub you need to tell your Application to use the session-auth service provider.

Open `app/config/app.php` and find

`Illuminate\Auth\AuthServiceProvider::class`

and replace it with

`KerchumA222\SessionAuth\SessionAuthServiceProvider::class`

This tells Laravel 5 to use the service provider from the vendor folder.

You also need to direct Auth to use the session driver instead of Eloquent or Database, edit `config/auth.php` and change driver to `session`

Configuration
-------------

[](#configuration)

No configuration needed in the client application. The Authenticating application needs to store user details in the shared `Session` in the key 'currentUser'. The required details of the currentUser are 'id', 'username' (or whatever your primary identifier is), and 'remember\_token' (for remembering users in the child applications without going back to the authentication application).

### Example

[](#example)

In your authentication application (which should NOT include this plugin) `Session::put('currentUser', ['id'=>1, 'username'=>'KerchumA222', 'remember_token'=>'xxxxxxx', 'groups'=>['Admin', 'User']]);`This can be conveniently done in the `Authentication.php` middleware.

Usage
-----

[](#usage)

Use of `Auth` is the same as with the default service provider. Auth::user() returns an instance of `GenericUser` with all the details stored in `Session` by the parent application.

Model Usage
-----------

[](#model-usage)

You do not use a model with this implementation.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

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

3

Last Release

3934d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f8769a6cea0c4402db70fc24e9aaf92f21721cdb4474463d1109ada0cf31f7a8?d=identicon)[KerchumA222](/maintainers/KerchumA222)

---

Top Contributors

[![KerchumA222](https://avatars.githubusercontent.com/u/7265614?v=4)](https://github.com/KerchumA222 "KerchumA222 (9 commits)")

---

Tags

laravelAuthenticationlumensessionlaravel 5l5Laravel 5.1

### Embed Badge

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

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)[laragear/two-factor

On-premises 2FA Authentication for out-of-the-box.

339785.3k8](/packages/laragear-two-factor)[laragear/webauthn

Authenticate users with Passkeys: fingerprints, patterns and biometric data.

403480.4k8](/packages/laragear-webauthn)[alajusticia/laravel-logins

Session management in Laravel apps, user notifications on new access, support for multiple separate remember tokens, IP geolocation, User-Agent parser

2011.0k](/packages/alajusticia-laravel-logins)[efficiently/authority-controller

AuthorityController is an PHP authorization library for Laravel 5 which restricts what resources a given user is allowed to access.

15533.2k](/packages/efficiently-authority-controller)

PHPackages © 2026

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