Skip to content

firegate666/doctrine-sessionhandler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Doctrine session handler

Simple add on to support db based sessions for PHP using doctrine.

Rules

  1. This repository follows PSR-2 standards.
  2. This project adheres to semantic versioning.
  3. 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