CommonPHP Auth is the authentication package for CommonPHP applications and plain PHP projects. It provides credential and identity value objects, result-oriented authentication flow, login state helpers, and driver contracts for database, LDAP, API token, or custom authentication sources.
Auth proves identity. It intentionally does not own authorization policies, password hashing, sessions, HTTP requests, routing, or persistence. Those concerns stay in comphp/security, comphp/session, HTTP/web packages, and driver packages.
Entry points:
CommonPHP\Authentication\AuthenticatorCommonPHP\Authentication\AuthenticationState
Value and result objects:
CommonPHP\Authentication\CredentialsCommonPHP\Authentication\IdentityCommonPHP\Authentication\AuthenticationResultCommonPHP\Authentication\Enums\AuthenticationStatus
Contracts:
CommonPHP\Authentication\Contracts\AuthenticatorInterfaceCommonPHP\Authentication\Contracts\AuthenticationDriverInterfaceCommonPHP\Authentication\Contracts\AbstractAuthenticationDriverCommonPHP\Authentication\Contracts\CredentialInterfaceCommonPHP\Authentication\Contracts\IdentityInterfaceCommonPHP\Authentication\Contracts\IdentityProviderInterface
Exceptions:
CommonPHP\Authentication\Exceptions\AuthenticationExceptionCommonPHP\Authentication\Exceptions\AuthenticationDriverExceptionCommonPHP\Authentication\Exceptions\AuthenticationStateExceptionCommonPHP\Authentication\Exceptions\IdentityNotFoundExceptionCommonPHP\Authentication\Exceptions\InvalidCredentialsException