firegate666 / doctrine-sessionhandler
Simple doctrine PHP session handler
1.1.1
2015-12-16 12:38 UTC
Requires
- doctrine/orm: ^2.5
This package is not auto-updated.
Last update: 2025-01-04 20:20:16 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