comphp / auth-comphp-database
Authentication Driver for CommonPHP which utilizes a CommonPHP Database Schema
Requires
- php: ^8.5
- comphp/auth: ^0.3
- comphp/database: ^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:01:37 UTC
README
Authentication driver for CommonPHP that uses a CommonPHP Database connection as an authentication source.
Requirements
- PHP
^8.5 comphp/auth:^0.3comphp/database:^0.3
Installation
Once this package is available through your Composer repositories, install it with:
composer require comphp/auth-comphp-database
Usage
<?php // TODO: Write usage
Driver Notes
This driver is intended for applications that already use comphp/database and want authentication records to be loaded through a CommonPHP database connection.
The driver should keep authentication storage separate from the core auth package while still allowing auth services to work against a common user provider contract.
Error Handling
Connection, lookup, credential, configuration, and authentication source failures should throw CommonPHP auth or database exceptions instead of returning ambiguous false values.
Documentation
License
MIT. See LICENSE.md.