PHPackages                             germania-kg/authentication - 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. germania-kg/authentication

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

germania-kg/authentication
==========================

1.2.0(3y ago)01041MITPHP ^7.4|^8.0

Since Dec 12Compare

[ Source](https://github.com/GermaniaKG/Authentication)[ Packagist](https://packagist.org/packages/germania-kg/authentication)[ RSS](/packages/germania-kg-authentication/feed)WikiDiscussions Synced 3d ago

READMEChangelogDependencies (8)Versions (10)Used By (1)

Germania KG · Authentication
============================

[](#germania-kg--authentication)

**This package was destilled from legacy code!**
You better do not want it to use this in production. [![Tests](https://github.com/GermaniaKG/Authentication/actions/workflows/tests.yml/badge.svg)](https://github.com/GermaniaKG/Authentication/actions/workflows/tests.yml)

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

[](#installation)

```
$ composer require germania-kg/authentication
```

Overview
--------

[](#overview)

### AuthUserInterface

[](#authuserinterface)

```
namespace Germania\Authentication;

// Setter and Getter for User ID.
public function getId();
public function setId( $id );
```

### AuthUserMiddleware

[](#authusermiddleware)

**Constructor accepts:**

- *AuthUserInterface* instance
- *Aura\\Session\\SegmentInterface* instance.
- User ID session field name
- Optional: PSR-3 Logger

**Middleware does:**

- Stores the user with a `user` attribute in the *Psr\\Http\\Message\\ServerRequestInterface* request object. It will be available within the `$next` middleware.
- After running `$next` middleware, stores the User ID with the *SegmentInterface* instance, if the `user` attribute still is *AuthUserInterface* instance.

---

### LoginController

[](#logincontroller)

TBD.

### LogoutController

[](#logoutcontroller)

TBD.

---

Development
-----------

[](#development)

```
$ git clone git@github.com:GermaniaKG/Authentication.git germania-authentication
$ cd germania-authentication
$ composer install
```

Unit tests
----------

[](#unit-tests)

Either copy `phpunit.xml.dist` to `phpunit.xml` and adapt to your needs, or leave as is. Run [PhpUnit](https://phpunit.de/) like this:

```
$ vendor/bin/phpunit
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity74

Established project with proven stability

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

Recently: every ~355 days

Total

8

Last Release

1270d ago

PHP version history (2 changes)1.0.1PHP ^5.6|^7.0

1.2.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ba1899945696f873f95de5e2b8f7519960f1b4e59f61e607b4cbbd8880d244e1?d=identicon)[germania-kg](/maintainers/germania-kg)

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/germania-kg-authentication/health.svg)

```
[![Health](https://phpackages.com/badges/germania-kg-authentication/health.svg)](https://phpackages.com/packages/germania-kg-authentication)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[cakephp/cakephp

The CakePHP framework

8.9k19.5M1.8k](/packages/cakephp-cakephp)[google/auth

Google Auth Library for PHP

1.4k294.2M217](/packages/google-auth)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69735.1M157](/packages/algolia-algoliasearch-client-php)

PHPackages © 2026

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