CommonPHP Auth provides authentication-focused contracts and services for CommonPHP applications. It defines the pieces needed to identify users, authenticate credentials, and connect authentication sources through driver-based implementations.
The package is focused on proving identity while allowing authorization, sessions, HTTP login flows, and storage drivers to remain separate or optional integrations.
- PHP
^8.5 comphp/runtime:^0.3
Once this package is available through your Composer repositories, install it with:
composer require comphp/auth<?php
// TODO: Write usageThis package should focus on authentication flows, authentication drivers, identity providers, and login state. Authorization and broader protection concerns belong in comphp/security.
Authentication failures should be represented with package-specific exceptions or result objects rather than generic runtime failures.
MIT. See LICENSE.md.