comphp / session-comphp-database
Session Driver for CommonPHP that reads/stores session data in a CommonPHP Database connection
Package info
github.com/commonphp/session-comphp-database
pkg:composer/comphp/session-comphp-database
Requires
- php: ^8.5
- comphp/database: ^0.3
- comphp/session: ^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:07 UTC
README
Session driver for CommonPHP that reads and stores session data through a CommonPHP Database connection.
Requirements
- PHP
^8.5 comphp/session:^0.3comphp/database:^0.3
Installation
Once this package is available through your Composer repositories, install it with:
composer require comphp/session-comphp-database
Usage
<?php // TODO: Write usage
Driver Notes
This driver is intended for applications that already use comphp/database and want session data stored through a CommonPHP database connection.
The driver should keep database-backed session storage separate from the core session package while using the common database abstraction.
Error Handling
Connection, read, write, destroy, garbage collection, and configuration failures should throw CommonPHP session or database exceptions instead of returning ambiguous false values.
Documentation
License
MIT. See LICENSE.md.