firegate666/doctrine-sessionhandler

Simple doctrine PHP session handler

1.1.1 2015-12-16 12:38 UTC

This package is not auto-updated.

Last update: 2024-05-11 16:34:38 UTC


README

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