PHPackages                             t4web/session - 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. t4web/session

ActiveLibrary

t4web/session
=============

ZF2 Module. Initializing SessionManager.

2.0.0(7y ago)0473BSD-3-ClausePHPPHP &gt;=5.5.0

Since Feb 22Pushed 7y ago3 watchersCompare

[ Source](https://github.com/t4web/Session)[ Packagist](https://packagist.org/packages/t4web/session)[ Docs](https://github.com/t4web/Session)[ RSS](/packages/t4web-session/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (5)Versions (8)Used By (0)

Session
=======

[](#session)

ZF2 Module. Initializing and configuring SessionManager. See [ZF2 Session Manager documentation](http://framework.zend.com/manual/current/en/modules/zend.session.manager.html)

### Instalation

[](#instalation)

Add to your `composer.json`:

```
"t4web/session": "^1.0"
```

And to your `config/application.config.php`:

```
'modules' => [
    // ...
    'T4web\Session',
    // ...
],
```

### Storage sessions in Db table

[](#storage-sessions-in-db-table)

By Default session store by native php engine, if you want store sessions in Db add to your `global.config.php`:

```
'session' => [
    'config' => [
        'options' => [
            'gc_maxlifetime' => 86400,
        ],
    ],
    'save_handler' => T4web\Session\SaveHandler\DbTableGateway::class,
    'save_handler_options' => [
        'db_table' => [
            'table' => 'sessions'
        ],
    ],
],
```

And create table `sessions`:

```
CREATE TABLE IF NOT EXISTS `sessions` (
    `id` varchar(32) NOT NULL,
    `name` varchar(32) NOT NULL,
    `modified` int(11),
    `lifetime` int(11),
    `data` text DEFAULT NULL,
    PRIMARY KEY (`id`, `name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
```

###  Health Score

29

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 78.6% 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 ~147 days

Recently: every ~221 days

Total

7

Last Release

2797d ago

Major Versions

1.0.5 → 2.0.02018-07-27

PHP version history (3 changes)1.0.0PHP ^5.5

1.0.1PHP ^5.5 || ^7.0

2.0.0PHP &gt;=5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d6b9ab1c535f3a27bd3b2bb97bc7d43c611cb69731861d2c2d60e1174b27ec4?d=identicon)[maxgu](/maintainers/maxgu)

---

Top Contributors

[![maxgu](https://avatars.githubusercontent.com/u/208688?v=4)](https://github.com/maxgu "maxgu (11 commits)")[![sebaks](https://avatars.githubusercontent.com/u/9897880?v=4)](https://github.com/sebaks "sebaks (3 commits)")

---

Tags

sessionzf2zf2 module

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/t4web-session/health.svg)

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

###  Alternatives

[zf-commons/zfc-user

A generic user registration and authentication module for ZF2. Supports Zend\\Db and Doctrine2.

4961.1M67](/packages/zf-commons-zfc-user)[socalnick/scn-social-auth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

21674.2k3](/packages/socalnick-scn-social-auth)[zf-commons/zfc-base

A set of genetic (abstract) classes which are commonly used across multiple modules.

1441.1M24](/packages/zf-commons-zfc-base)[hrevert/ht-session

A Zend Framework 2 module to manage session configurations, session validators, storing session data in database.

133.0k](/packages/hrevert-ht-session)[akrabat/akrabat-session

A Zend Framework 2 module for configuring sessions

134.5k](/packages/akrabat-akrabat-session)[org_heigl/hybridauth

Lightweight Authentication Module for Zend-Framework 2 using the hybridauth-library

211.9k](/packages/org-heigl-hybridauth)

PHPackages © 2026

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