PHPackages                             pematon/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. pematon/mysql-session-handler

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

pematon/mysql-session-handler
=============================

MySQL session handler for Nette Framework

v2.0.0(3y ago)815311MITPHPPHP &gt;=8.1

Since Dec 4Pushed 2y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (6)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)

- PHP 8.1+

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

[](#installation)

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

```
$ composer require pematon/mysql-session-handler:~2.0
```

Setup
-----

[](#setup)

After installation:

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

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

3. Configure custom table name:

```
sessionHandler:
    tableName: session
```

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

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~764 days

Total

5

Last Release

1118d ago

Major Versions

v1.2.1 → v2.0.02023-04-18

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

v1.2.1PHP &gt;=5.4

v2.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/94223518b61b96bac037626ab466f12d65d5d39fde29948cf61ee72f32f4c52b?d=identicon)[mariancerny](/maintainers/mariancerny)

---

Top Contributors

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

---

Tags

nette

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/pematon-mysql-session-handler/health.svg)](https://phpackages.com/packages/pematon-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)
