Registry / auth / mezzio-mezzio-authentication

mezzio-mezzio-authentication

JSON →
library1.13.0phppackagistunverified

Authentication middleware for Mezzio and PSR-7 applications

composer require mezzio/mezzio-authentication
INSTALL
IMPORT
SIG · MEZZIO-MEZZIO-AUTH
M
mezzio-mezzio-authentication
authphpv1.13.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AuthenticationMiddleware
use Mezzio\Authentication\AuthenticationMiddleware;

Create an authentication middleware instance with a session adapter.

use Mezzio\Authentication\AuthenticationMiddleware; use Mezzio\Authentication\Session\PhpSession; $authAdapter = new PhpSession(); $middleware = new AuthenticationMiddleware($authAdapter);
Debug
Known issues
gotchaRequires a configured authentication adapter (e.g., session, HTTP basic) to function.
fix
Ensure you pass an adapter implementing AuthenticationInterface to the middleware.
affects: >=1.0.0
Upgrade
Version history
1.13.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
20 hits · last 30 days
node
18
OpenAI (training)
1
Resources
mezzio-mezzio-authentication — pip install mezzio-mezzio-authentication · libregistry