authentication icon indicating copy to clipboard operation
authentication copied to clipboard

A framework agnostic authentication library based on PSR standards

Authentication

Software License Scrutinizer Coverage Code Quality phpstan Level 8 php 7.4 php 8.0

This library intends to provide a framework around authentication and user identification. Authorization is a separate concern.

Installation

You can install this library using composer:

composer require phauthentic/authentication

Requirements

Your application must use the PSR 7 HTTP Message interfaces for your request and response objects. The whole library is build to be framework agnostic but uses these interfaces as the common API. Every modern and well written framework and application should fulfill this requirement.

Only if you plan to use the PSR-15 middleware:

Documentation

  • Architectural Overview
  • Quick Start and Introduction
    • JWT Example
  • Authenticators
    • Session
    • Token
    • JWT
    • HTTP Basic
    • HTTP Digest
    • Cookie
    • OAuth
  • Identifiers
    • Identity Resolvers
      • Callback Resolver
      • PDO Statement Resolver
      • Writing your own Resolver
  • Identity Objects
  • URL Checkers
  • PSR15 Middleware
  • PSR7 Middleware

Copyright & License

Licensed under the MIT license.