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

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

vperyod/auth-handler
====================

PSR7 Aura\\Auth Authentication Handler

0.3.1(7y ago)2161MITPHPPHP &gt;=7.2

Since Feb 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/vperyod/vperyod.auth-handler)[ Packagist](https://packagist.org/packages/vperyod/auth-handler)[ Docs](https://github.com/vperyod/vperyod.auth-handler)[ RSS](/packages/vperyod-auth-handler/feed)WikiDiscussions develop Synced today

READMEChangelogDependencies (5)Versions (6)Used By (0)

vperyod.auth-handler
====================

[](#vperyodauth-handler)

[Aura\\Auth](https://github.com/auraphp/Aura.Auth) Authentication middleware

[![Latest version](https://camo.githubusercontent.com/7007215c17940a38195c67561ab65dad3e2c694295cc2898ef88694122b707aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76706572796f642f617574682d68616e646c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vperyod/auth-handler)[![Build Status](https://camo.githubusercontent.com/e80a25b90409d7691a0198f53b277632039b9d6bffa7f85fcf7a5ea38843b937/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f76706572796f642f76706572796f642e617574682d68616e646c65722f646576656c6f702e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/vperyod/vperyod.auth-handler)[![Coverage Status](https://camo.githubusercontent.com/b83bd9344f016c94e2b51772b35925881bf31a24524d664f98b26956e60dc158/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f76706572796f642f76706572796f642e617574682d68616e646c65722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/vperyod/vperyod.auth-handler)[![Quality Score](https://camo.githubusercontent.com/596461ae3dea35efd51f0738c866518db18688b7b34b862268f64e47b3aa82b3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f76706572796f642f76706572796f642e617574682d68616e646c65722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/vperyod/vperyod.auth-handler)

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

[](#installation)

```
composer require vperyod/auth-handler

```

Usage
-----

[](#usage)

See [Aura\\Auth](https://github.com/auraphp/Aura.Auth) documentation.

```
// Create handler with Auth and ResumeService instance
$handler = new Vperyod\AuthHandler\AuthHandler($auth, $resume);

// Optionally set the `AuthAttribute`, the name of the attribute on which to
// store the `AuthAttribute` in the `Request`. Defaults to 'aura/auth:auth'
$handler->setAuthAttribute('auth');

// Add to your middleware stack, radar, relay, etc.
$stack->middleware($handler);

// Subsequest dealings with `Request` will have the `Auth` instance available at
// the previous specified atribute
$auth = $request->getAttribute('auth');

// The `AuthRequestAwareTrait` should make dealings easier.
//
// Have all your objects that deal with the auth attribute on the request use
// the `AuthRequestAwareTrait` and have your DI container use the setter, so that
// they all know where the auth object is stored.

class MyMiddleware
{
    use \Vperyod\AuthHandler\AuthRequestAwareTrait;

    public function __invoke($request, $response, $next)
    {
        $auth = $this->getAuth($request);
        $status = $this->getAuthStatus($request);
        $isValid = $this->isAuthValid($request);

        // ...
        return $next($request, $response);
    }
}

class MyInputExtractor
{

    use \Vperyod\AuthHandler\AuthRequestAwareTrait;

    public funciton __invoke($request)
    {
        return [
            'auth' => $this->getAuth($request),
            'data' => $request->getParsedBody()
        ];
    }
}
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Every ~389 days

Total

4

Last Release

2619d ago

PHP version history (2 changes)0.3.0PHP &gt;=7.1

0.3.1PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/64baf5fff415327ccc832998afe54b34ac3c621e401f128a9343d4e0b0a3f9e4?d=identicon)[jnj](/maintainers/jnj)

---

Top Contributors

[![jakejohns](https://avatars.githubusercontent.com/u/174708?v=4)](https://github.com/jakejohns "jakejohns (21 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[cakephp/cakephp

The CakePHP framework

8.9k19.5M1.7k](/packages/cakephp-cakephp)[league/oauth2-server

A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.

6.7k147.0M278](/packages/league-oauth2-server)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k34](/packages/neuron-core-neuron-ai)[simplesamlphp/saml2

SAML2 PHP library from SimpleSAMLphp

30418.0M42](/packages/simplesamlphp-saml2)[typo3/cms-core

TYPO3 CMS Core

3713.2M4.9k](/packages/typo3-cms-core)

PHPackages © 2026

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