PHPackages                             wincorex/mysql-session-handler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. wincorex/mysql-session-handler

ActiveLibrary[Database &amp; ORM](/categories/database)

wincorex/mysql-session-handler
==============================

MySQL session handler for Nette Framework

v1.2.1(8y ago)013MITPHPPHP &gt;=5.4

Since Dec 4Pushed 1y agoCompare

[ Source](https://github.com/wincorex/mysql-session-handler)[ Packagist](https://packagist.org/packages/wincorex/mysql-session-handler)[ RSS](/packages/wincorex-mysql-session-handler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

MySQL Session handler
=====================

[](#mysql-session-handler)

Custom PHP session handler for [Nette Framework](http://nette.org/) that uses MySQL database for storage.

Requirements
------------

[](#requirements)

- [nette/database](https://github.com/nette/database) 2.4+
- PHP 7.2+

Installation
------------

[](#installation)

Preferred way to install wincorex/mysql-session-handler is by using [Composer](http://getcomposer.org/):

```
$ composer require wincorex/mysql-session-handler:~dev-master
```

Setup
-----

[](#setup)

After installation:

1. Create the table sessions using SQL in [sql/create.sql](sql/create.sql).
2. Register an extension in config.neon:

```
	extensions:
		sessionHandler: Wincorex\Session\DI\MysqlSessionHandlerExtension

	sessionHandler:
		tableName: 'web_session'
		jsonDebug: true
```

Original source code
--------------------

[](#original-source-code)

- Pematon [GitHub](https://github.com/pematon/mysql-session-handler)
- MD5 hash is not applicated for easy debugging

Features
--------

[](#features)

- For security reasons, Session ID is stored in the database as an MD5 hash.
- Multi-Master Replication friendly (tested in Master-Master row-based replication setup).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~402 days

Total

4

Last Release

2968d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.3

v1.2.1PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/b4921fc3be5c84615e95600287a18677e57b115911c03d8158e66742e167f394?d=identicon)[wincore](/maintainers/wincore)

---

Top Contributors

[![peterpp](https://avatars.githubusercontent.com/u/1448883?v=4)](https://github.com/peterpp "peterpp (2 commits)")[![mariancerny](https://avatars.githubusercontent.com/u/1448896?v=4)](https://github.com/mariancerny "mariancerny (1 commits)")

### Embed Badge

![Health badge](/badges/wincorex-mysql-session-handler/health.svg)

```
[![Health](https://phpackages.com/badges/wincorex-mysql-session-handler/health.svg)](https://phpackages.com/packages/wincorex-mysql-session-handler)
```

###  Alternatives

[nettrine/orm

Doctrine ORM for Nette Framework

581.9M37](/packages/nettrine-orm)[nettrine/migrations

Doctrine Migrations for Nette Framework

411.7M17](/packages/nettrine-migrations)[nettrine/dbal

Doctrine DBAL for Nette Framework

322.6M19](/packages/nettrine-dbal)[nettrine/annotations

Doctrine Annotations for Nette Framework

193.0M7](/packages/nettrine-annotations)[contributte/monolog

Monolog integration into Nette Framework

231.9M7](/packages/contributte-monolog)[nettrine/fixtures

Doctrine Fixtures for Nette Framework

181.2M8](/packages/nettrine-fixtures)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
