PHPackages                             chillerlan/php-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. chillerlan/php-session

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

chillerlan/php-session
======================

A simple encrypted session handler. PHP 7+

1.0.0(8y ago)119MITPHPPHP ^7.2.0

Since Mar 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/chillerlan/php-session)[ Packagist](https://packagist.org/packages/chillerlan/php-session)[ Docs](https://github.com/chillerlan/php-session)[ RSS](/packages/chillerlan-php-session/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

chillerlan/php-session
======================

[](#chillerlanphp-session)

A [`SessionHandlerInterface`](http://php.net/manual/class.sessionhandlerinterface.php) implementation for PHP 7.2+

[![version](https://camo.githubusercontent.com/220bd3d735a0a736b343fad68d6c8fded5e5df3168d20d5f359447b1c1e4b1be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368696c6c65726c616e2f7068702d73657373696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chillerlan/php-session)[![license](https://camo.githubusercontent.com/f5e5e590d4372de54124a8e9a45a8551a3a45f872b9fe49d45e852f5784ef02d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6368696c6c65726c616e2f7068702d73657373696f6e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/chillerlan/php-session/blob/master/LICENSE.md)[![Travis](https://camo.githubusercontent.com/05e84fdeaec3f838871c992695994455239843bd4338c33cc4b1a61021cfc939/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6368696c6c65726c616e2f7068702d73657373696f6e2e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/chillerlan/php-session)[![Coverage](https://camo.githubusercontent.com/a58302d10aedeb5efea68025b3fcce60675e8605da0122d0d191415328bb0630/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6368696c6c65726c616e2f7068702d73657373696f6e2e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/github/chillerlan/php-session)[![Scrunitizer](https://camo.githubusercontent.com/d5d5ec5c2b7be71397f7099ad67785b101070700a5c03722b9a917c78b435514/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6368696c6c65726c616e2f7068702d73657373696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/chillerlan/php-session)[![Packagist downloads](https://camo.githubusercontent.com/32f25012e670aa3dd075120b6d669f981f7cd27f89d3cae19f74688441c7d9a9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6368696c6c65726c616e2f7068702d73657373696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chillerlan/php-session/stats)[![PayPal donate](https://camo.githubusercontent.com/1898364bc025197736eadf98f27b48ed82c6c63b9ba33e201eaae5cbde03ae42/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f6e6174652d70617970616c2d6666333361612e7376673f7374796c653d666c61742d737175617265)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WLYUNAT9ZTJZ4)

Documentation
=============

[](#documentation)

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

[](#requirements)

- PHP 7.2+
- the [Sodium](http://php.net/manual/book.sodium.php) extension for session encryption

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

[](#installation)

**requires [composer](https://getcomposer.org)**

*composer.json* (note: replace `dev-master` with a version boundary)

```
{
	"require": {
		"php": ">=7.0.3",
		"chillerlan/php-session": "dev-master"
	}
}
```

Manual installation
-------------------

[](#manual-installation)

Download the desired version of the package from [master](https://github.com/chillerlan/php-session/archive/master.zip) or [release](https://github.com/chillerlan/php-session/releases) and extract the contents to your project folder. After that:

- run `composer install` to install the required dependencies and generate `/vendor/autoload.php`.
- if you use a custom autoloader, point the namespace `chillerlan\Session` to the folder `src` of the package

Profit!

Usage
-----

[](#usage)

- @todo

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3016d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/592497?v=4)[smiley](/maintainers/codemasher)[@codemasher](https://github.com/codemasher)

---

Top Contributors

[![codemasher](https://avatars.githubusercontent.com/u/592497?v=4)](https://github.com/codemasher "codemasher (21 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/lock

Creates and manages locks, a mechanism to provide exclusive access to a shared resource

514135.1M628](/packages/symfony-lock)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[phpro/soap-client

A general purpose SoapClient library

8895.9M52](/packages/phpro-soap-client)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

562565.8k42](/packages/ecotone-ecotone)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751284.3k37](/packages/civicrm-civicrm-core)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.9M203](/packages/illuminate-broadcasting)

PHPackages © 2026

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