comphp/session-comphp-database

Session Driver for CommonPHP that reads/stores session data in a CommonPHP Database connection

Maintainers

Package info

github.com/commonphp/session-comphp-database

pkg:composer/comphp/session-comphp-database

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2026-05-17 04:45 UTC

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.3
  • comphp/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.