firegate666 / doctrine-sessionhandler
Simple doctrine PHP session handler
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/firegate666/doctrine-sessionhandler
Requires
- doctrine/orm: ^2.5
This package is not auto-updated.
Last update: 2025-10-12 00:52:14 UTC
README
Simple add on to support db based sessions for PHP using doctrine.
Rules
- This repository follows PSR-2 standards.
- This project adheres to semantic versioning.
- This project follows Keep a CHANGELOG rules
Install
composer require firegate666/doctrine-sessionhandler
Usage
$sessionData = new SessionData(); // own class implementing SessionDataInterface
$entityManager = EntityManager::create($connConfig, $config);
session_set_save_handler(new SessionHandler($entityManager));
Contribute
Fork the repository on GitHub and submit pull requests