quioteframework/session-pdo
Composer 安装命令:
composer require quioteframework/session-pdo
包简介
PDO-backed session storage for Quiote: a SessionPersistenceInterface implementation for SessionManager, plus a native SessionHandlerInterface implementation for the legacy Storage subsystem.
README 文档
README
PDO-backed session storage for Quiote. Ships two independent implementations against Quiote's two session mechanisms:
Quiote\Session\Pdo\PdoSessionPersistenceimplementsQuiote\Session\SessionPersistenceInterface(load/save/delete), the backend forQuiote\Session\SessionManager— the modern, PSR-7-based session mechanism, safe under persistent worker runtimes (FrankenPHP, RoadRunner). Prefer this for new code.Quiote\Storage\Pdo\PdoSessionStorageimplements PHP's nativeSessionHandlerInterfacefor the legacyStorage/SessionStoragemechanism ($_SESSION/session_start()). Kept for apps already built on that mechanism.
Install
composer require quioteframework/session-pdo
Both expect a table shaped like:
CREATE TABLE session ( sess_id VARCHAR(64) PRIMARY KEY, sess_data BYTEA/BLOB/TEXT NOT NULL, sess_time TIMESTAMP NOT NULL );
PdoSessionPersistence
$manager = new \Quiote\Session\SessionManager( new \Quiote\Session\Pdo\PdoSessionPersistence($pdo, table: 'session'), );
PdoSessionStorage
Configure via storage.xml/factories with the required db_table parameter (optional: database, db_id_col, db_data_col, db_time_col, data_as_lob, date_format) — see the class docblock for the full list.
License
MIT. See LICENSE.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2026-07-04