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

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

bleicker/authentication
=======================

2.2.0(11y ago)0902PHP

Since Apr 25Pushed 11y ago1 watchersCompare

[ Source](https://github.com/pumatertion/bleicker.authentication)[ Packagist](https://packagist.org/packages/bleicker/authentication)[ RSS](/packages/bleicker-authentication/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (12)Used By (2)

Usage
-----

[](#usage)

### TokenManager

[](#tokenmanager)

The AuthenticationManager requires a TokenManager. Just register your own or use the default TokenManager:

```
ObjectManager::register(TokenManagerInterface::class, new TokenManager());

```

### AuthenticationManager

[](#authenticationmanager)

Creating AuthenticationManager Instance:

```
$authenticationManager = new AuthenticationManager();

```

#### Register a prototype token

[](#register-a-prototype-token)

Authentication state lives as long as runtime.

```
$authenticationManager->getTokenManager()->registerPrototypeToken(MyPrototypeToken::class, new MyPrototypeToken());

```

#### Register a session token

[](#register-a-session-token)

Authentication state will exists along the runtime.

```
$authenticationManager->getTokenManager()->registerSessionToken(MySessioinToken::class, new MySessioinToken());

```

#### Getting authentication state of a Token

[](#getting-authentication-state-of-a-token)

```
$authenticationManager->getTokenManager()->getToken(MyPrototypeToken::class)->status();

```

### Run Authentication

[](#run-authentication)

Run the authentication. In this case any registered Token tries to authenticate.

```
$authenticationManager->run();

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity70

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

Total

11

Last Release

4025d ago

Major Versions

1.0.6 → 2.0.02015-05-10

### Community

Maintainers

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

---

Top Contributors

[![pumatertion](https://avatars.githubusercontent.com/u/1853527?v=4)](https://github.com/pumatertion "pumatertion (26 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[sonata-project/user-bundle

Symfony SonataUserBundle

3465.6M44](/packages/sonata-project-user-bundle)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[nucleos/user-bundle

Lightweight user management for symfony

61380.7k5](/packages/nucleos-user-bundle)[openeuropa/oe_authentication

Authentication against the OpenEuropa Authentication service.

17314.8k2](/packages/openeuropa-oe-authentication)[r/u2f-two-factor-bundle

Use U2F-Keys as 2FA for Symfony2, using scheb/two-factor-bundle

1212.8k](/packages/r-u2f-two-factor-bundle)

PHPackages © 2026

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