comphp / session-mysqldb
Session Driver for CommonPHP that reads/stores session data in a MySQL Database
Requires
- php: ^8.5
- 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:12 UTC
README
Session driver for CommonPHP that reads and stores session data in MySQL.
Requirements
- PHP
^8.5 comphp/session:^0.3- A MySQL extension or connection library supported by the implementation
Installation
Once this package is available through your Composer repositories, install it with:
composer require comphp/session-mysqldb
Usage
<?php // TODO: Write usage
Driver Notes
This driver is intended for applications that want MySQL-backed session storage without requiring the full CommonPHP Database abstraction.
Use comphp/session-comphp-database instead when session storage should go through a CommonPHP Database connection.
Error Handling
Connection, read, write, destroy, garbage collection, and configuration failures should throw CommonPHP session driver exceptions instead of returning ambiguous false values.
Documentation
License
MIT. See LICENSE.md.