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

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

aura/auth
=========

Provides a unified interface to authenticate a user with local or remote authentication systems.

4.0.3(4y ago)139244.5k↓44.6%29[4 issues](https://github.com/auraphp/Aura.Auth/issues)[1 PRs](https://github.com/auraphp/Aura.Auth/pulls)12BSD-2-ClausePHPPHP &gt;=7.2.0CI failing

Since Oct 5Pushed 7mo ago16 watchersCompare

[ Source](https://github.com/auraphp/Aura.Auth)[ Packagist](https://packagist.org/packages/aura/auth)[ Docs](https://github.com/auraphp/Aura.Auth)[ RSS](/packages/aura-auth/feed)WikiDiscussions 4.x Synced 2w ago

READMEChangelog (7)Dependencies (3)Versions (14)Used By (12)

Aura.Auth
=========

[](#auraauth)

Provides authentication functionality and session tracking using various adapters; currently supported adapters are:

- Apache htpasswd files
- SQL tables via the [PDO](http://php.net/pdo) extension
- IMAP/POP/NNTP via the [imap](http://php.net/imap) extension
- LDAP and Active Directory via the [ldap](http://php.net/ldap) extension
- OAuth via customized adapters

It also provides a secure, pluggable "remember me" feature for long-term authentication.

Note that the purpose of this package is only to authenticate user credentials. It does not currently, and probably will not in the future, handle user account creation and management. That is more properly the domain of application-level functionality, or at least a separate Aura bundle.

Foreword
--------

[](#foreword)

### Installation

[](#installation)

This library requires PHP 8.2 or later, and depends only on [aura/session-interface](https://packagist.org/packages/aura/session-interface) for its shared session contracts.

It is installable and autoloadable via Composer as [aura/auth](https://packagist.org/packages/aura/auth).

Alternatively, [download a release](https://github.com/auraphp/Aura.Auth/releases) or clone this repository, then require or include its *autoload.php* file.

### Quality

[](#quality)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b181b9c9722ef21f64171bbba9cdc69149fb33fd5e815c2c42717ec8149f9a80/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f617572617068702f417572612e417574682f6261646765732f7175616c6974792d73636f72652e706e673f623d362e78)](https://scrutinizer-ci.com/g/auraphp/Aura.Auth/)[![Continuous Integration](https://github.com/auraphp/Aura.Auth/actions/workflows/continuous-integration.yml/badge.svg?branch=6.x)](https://github.com/auraphp/Aura.Auth/actions/workflows/continuous-integration.yml)

To run the unit tests at the command line, issue `composer install` and then `vendor/bin/phpunit` at the package root. This requires [Composer](http://getcomposer.org/) to be available as `composer`.

This library attempts to comply with [PSR-1](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md), [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md), and [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md). If you notice compliance oversights, please send a patch via pull request.

### Community

[](#community)

To ask questions, provide feedback, or otherwise communicate with the Aura community, please join our [Google Group](http://groups.google.com/group/auraphp), follow [@auraphp on Twitter](http://twitter.com/auraphp), or chat with us on #auraphp on Freenode.

Documentation
-------------

[](#documentation)

This package is fully documented [here](./docs/index.md).

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance44

Moderate activity, may be stable

Popularity50

Moderate usage in the ecosystem

Community39

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~606 days

Total

12

Last Release

24d ago

Major Versions

2.0.0 → 3.x-dev2016-01-28

2.x-dev → 4.0.02019-07-03

4.x-dev → 6.x-dev2026-07-25

PHP version history (4 changes)2.0.0-beta1PHP &gt;=5.3.0

3.x-devPHP ^5.5.0|^7.0

4.0.0PHP &gt;=7.2.0

6.x-devPHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25754?v=4)[Paul M. Jones](/maintainers/pmjones)[@pmjones](https://github.com/pmjones)

![](https://www.gravatar.com/avatar/29dba0e6add8d89fd3fc6126b213d5d2f57538ea78318963025d6ea98db34161?d=identicon)[harikt](/maintainers/harikt)

---

Top Contributors

[![harikt](https://avatars.githubusercontent.com/u/120454?v=4)](https://github.com/harikt "harikt (46 commits)")[![cxj](https://avatars.githubusercontent.com/u/446131?v=4)](https://github.com/cxj "cxj (17 commits)")[![brandonsavage](https://avatars.githubusercontent.com/u/197889?v=4)](https://github.com/brandonsavage "brandonsavage (6 commits)")[![mfrost503](https://avatars.githubusercontent.com/u/660067?v=4)](https://github.com/mfrost503 "mfrost503 (5 commits)")[![cj-clx](https://avatars.githubusercontent.com/u/46033285?v=4)](https://github.com/cj-clx "cj-clx (4 commits)")[![shameerc](https://avatars.githubusercontent.com/u/275500?v=4)](https://github.com/shameerc "shameerc (3 commits)")[![galactic-void](https://avatars.githubusercontent.com/u/40361?v=4)](https://github.com/galactic-void "galactic-void (3 commits)")[![marklocker](https://avatars.githubusercontent.com/u/2170244?v=4)](https://github.com/marklocker "marklocker (2 commits)")[![pmjones](https://avatars.githubusercontent.com/u/25754?v=4)](https://github.com/pmjones "pmjones (2 commits)")[![erikjwaxx](https://avatars.githubusercontent.com/u/2265605?v=4)](https://github.com/erikjwaxx "erikjwaxx (1 commits)")[![afilina](https://avatars.githubusercontent.com/u/199835?v=4)](https://github.com/afilina "afilina (1 commits)")[![apple-x-co](https://avatars.githubusercontent.com/u/8497012?v=4)](https://github.com/apple-x-co "apple-x-co (1 commits)")[![jakeasmith](https://avatars.githubusercontent.com/u/234832?v=4)](https://github.com/jakeasmith "jakeasmith (1 commits)")[![jfortunato](https://avatars.githubusercontent.com/u/1606681?v=4)](https://github.com/jfortunato "jfortunato (1 commits)")[![mapthegod](https://avatars.githubusercontent.com/u/2857983?v=4)](https://github.com/mapthegod "mapthegod (1 commits)")[![alc](https://avatars.githubusercontent.com/u/1158467?v=4)](https://github.com/alc "alc (1 commits)")[![mprelude](https://avatars.githubusercontent.com/u/11092086?v=4)](https://github.com/mprelude "mprelude (1 commits)")[![quasipickle](https://avatars.githubusercontent.com/u/1377105?v=4)](https://github.com/quasipickle "quasipickle (1 commits)")[![assertchris](https://avatars.githubusercontent.com/u/200609?v=4)](https://github.com/assertchris "assertchris (1 commits)")[![CarwynNelson](https://avatars.githubusercontent.com/u/3310215?v=4)](https://github.com/CarwynNelson "CarwynNelson (1 commits)")

---

Tags

auraauthenticationauthenticatorhacktoberfesthacktoberfest2020loginoauth2pdostandalone-php-libraryauthAuthenticationauthenticate

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k52.7M386](/packages/tymon-jwt-auth)[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.7k151.3M327](/packages/league-oauth2-server)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

84511.6M67](/packages/php-open-source-saver-jwt-auth)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

41022.5M98](/packages/auth0-auth0-php)[kreait/firebase-tokens

A library to work with Firebase tokens

23947.1M19](/packages/kreait-firebase-tokens)[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.4M3](/packages/auth0-login)

PHPackages © 2026

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