comphp / auth-mysqldb
Authentication Driver for CommonPHP which utilizes a MySQL Schema
Requires
- php: ^8.5
- comphp/auth: ^0.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.95
- phpunit/phpunit: ^13.1
This package is auto-updated.
Last update: 2026-05-20 18:02:50 UTC
README
Authentication driver for CommonPHP that uses MySQL as an authentication source.
Requirements
- PHP
^8.5 comphp/auth:^0.3- A MySQL database driver or extension supported by the implementation
Installation
Once this package is available through your Composer repositories, install it with:
composer require comphp/auth-mysqldb
Usage
<?php // TODO: Write usage
Driver Notes
This driver is intended for applications that store authentication records directly in MySQL without requiring the full CommonPHP database abstraction.
Use comphp/auth-comphp-database instead when authentication should go through a CommonPHP Database connection.
Error Handling
Connection, query, credential, configuration, and authentication source failures should throw CommonPHP auth driver exceptions instead of returning ambiguous false values.
Documentation
License
MIT. See LICENSE.md.