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

ActiveLibrary

humble/session
==============

HUMBLE Session

010PHP

Since Feb 28Pushed 10y ago1 watchersCompare

[ Source](https://github.com/humblephp/humble-session)[ Packagist](https://packagist.org/packages/humble/session)[ RSS](/packages/humble-session/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

humble-session
==============

[](#humble-session)

[![Latest Version](https://camo.githubusercontent.com/4c294e74bf2f4c84f25f1b7ce36a1cbb780da6f4db74ccf10bd8b8c27019f3d1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f68756d626c657068702f68756d626c652d73657373696f6e2e737667)](https://github.com/humblephp/humble-session/releases)[![Software License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/de307f2d92ae39367733ee9c02a0135771e2368c45ecc64b8dc50abb63ece803/68747470733a2f2f6170692e7472617669732d63692e6f72672f68756d626c657068702f68756d626c652d73657373696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/humblephp/humble-session)

HUMBLE Session

Install
-------

[](#install)

Via Composer

```
$ composer require humble/session
```

Usage
-----

[](#usage)

Start PHP Session.

```
\Humble\Session\Session::start();

```

Start PHP Session with custom cookie params.

```
\Humble\Session\Session::start(array('lifetime' => 3600));

```

Create table for Pdo Session.

```
CREATE TABLE `sessions` (
  `id` char(26) NOT NULL,
  `time` int(10) unsigned NOT NULL,
  `data` text NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

```

Start Pdo Session.

```
$handler = new \Humble\Session\PdoSessionHandler($pdo);
\Humble\Session\Session::start(array('lifetime' => 3600), $handler);

```

Get Pdo Session Handler with custom settings.

```
$handler = new \Humble\Session\PdoSessionHandler($pdo, [
    'tableName' => 'sessions',
    'idField' => 'id',
    'timeField' => 'time',
    'dataField' => 'data',
]);

```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8b7f2440906b221ed621f106dca65931a0d2de3516a523782923fdf581da3f03?d=identicon)[arekwiertlewski](/maintainers/arekwiertlewski)

### Embed Badge

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

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

PHPackages © 2026

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