PHP Package: mezzio/mezzio-authentication

mezzio-authentication is a PHP library for handling authentication in Mezzio applications, providing secure and customizable user authentication functionality.

Current Version:
Last Updated:
PHP Requirement: >=7.1
Dependencies: mezzio/mezzio, mezzio/mezzio-session, mezzio/mezzio-session-cache, laminas/laminas-crypt, laminas/laminas-db, laminas/laminas-servicemanager
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

mezzio-authentication is a powerful PHP library designed to facilitate user authentication in Mezzio applications. It offers a flexible and secure way to manage user access, including features like user registration, login, password reset, and more. With mezzio-authentication, developers can easily implement robust authentication mechanisms to protect their applications from unauthorized access.

🔗 View on GitHub

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php

// Example from PHPlibraries.com
require_once 'libs/mezzio/mezzio-authentication/lib_version/autoload.php';

use Mezzio\Authentication\AuthenticationMiddleware;
use Mezzio\Authentication\ConfigProvider;
use Mezzio\Authentication\DefaultUserFactory;
use Mezzio\Authentication\UserInterface;
use Mezzio\Authentication\UserRepositoryInterface;
use Mezzio\Authentication\UserRepository\LaminasDb\TableRepository;
use Mezzio\Authentication\UserRepository\LaminasDb\LaminasDb;
use Mezzio\Authentication\UserRepository\LaminasDb\LaminasDbAdapterFactory;
use Mezzio\Authentication\UserRepository\LaminasDb\TableFactory;
use Laminas\Crypt\Password\BcryptFactory;
use Laminas\Crypt\Password\Bcrypt;
use Laminas\Crypt\Password\PasswordInterface;


$obj = new Mezzio\Authentication\AuthenticationMiddleware();
echo "✅ Example created successfully.";

?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.