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

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

erdiko/session
==============

Session Handler

0.1.1(8y ago)31331MITPHPPHP &gt;=5.5.0

Since Aug 14Pushed 8y ago5 watchersCompare

[ Source](https://github.com/Erdiko/session)[ Packagist](https://packagist.org/packages/erdiko/session)[ Docs](http://erdiko.org)[ RSS](/packages/erdiko-session/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (2)Versions (5)Used By (0)

Erdiko Session Package
======================

[](#erdiko-session-package)

[![Package version](https://camo.githubusercontent.com/b7cbbcdd9ea2d3a733790fc400a653697ae06782f795db1a0537021115b0732b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f657264696b6f2f73657373696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/erdiko/session)[![CircleCI](https://camo.githubusercontent.com/a5591c607157736abd56b261caa3029659ffc754a426f2ebf2ca179d91794cdf/68747470733a2f2f636972636c6563692e636f6d2f67682f457264696b6f2f73657373696f6e2e7376673f7374796c653d737667)](https://circleci.com/gh/Erdiko/session)[![License](https://camo.githubusercontent.com/3283f2b95edbdddf59c03995058271365b3640c36148f5d4af6f6074aad44380/68747470733a2f2f706f7365722e707567782e6f72672f657264696b6f2f73657373696f6e2f6c6963656e7365)](https://packagist.org/packages/erdiko/session)

Important: This package is currently on development, please don't use it until have a beta or stable version.
-------------------------------------------------------------------------------------------------------------

[](#important-this-package-is-currently-on-development-please-dont-use-it-until-have-a-beta-or-stable-version)

### Introduction

[](#introduction)

Erdiko Session is a package to handle in an easy and elastic way to persistent user data through the lifetime of your application.

### Official Documentation

[](#official-documentation)

Documentation for Erdiko Session Package can be found on the [Erdiko website](http://erdiko.org/session/).

### Installation

[](#installation)

We recommend installing Erdiko Session Package with [Composer](https://getcomposer.org/). At the commandline simply run:

```
composer require erdiko/session

```

### Drivers

[](#drivers)

Current Drivers Available:

- File: SessionDriverFile

Coming Drivers in development:

- Redis: SessionDriverRedis
- Database: SessionDriverDatabase
- Cookie: SessionDriverCookie

### Dependencies

[](#dependencies)

This package depends of Erdiko\\Core

### Configuration

[](#configuration)

File Path

```
[site_root]/app/config/default/session.json

```

File format

```
{
  "default": { // Driver Source
    "driver": "file",  // Driver Type
    "path": "/tmp",
    "lifetime": 60000
  }
}

```

### Available Methods

[](#available-methods)

You will find several methods that will satisfy your requirements for handling session data.

- get
- set
- has
- forget
- exists

### Basic Usage

[](#basic-usage)

For more details please see [*Advance Usage Detail*](/advanceUsage.md) Page.

#### Set Method

[](#set-method)

Set the value on session

```
Session::set('name', 'value');

```

#### Get method

[](#get-method)

Retrieves the value from the session

```
Session::get('name');

```

#### Has method

[](#has-method)

Verifies if the given key exists and has a value on the session

```
Session::get('name');

```

#### Exists method

[](#exists-method)

Verifies if the given key exists, without verify if has or not value

```
Session::set('name', 'value');

```

#### Forget method

[](#forget-method)

Removes the given key from the session

```
Session::set('name', 'value');

```

### Tests

[](#tests)

*On development*

### Credits

[](#credits)

- Mauricio Gastón
- John Arroyo
- Leo Daidone

[All Contributors](https://github.com/Erdiko/session/graphs/contributors)

- If you want to help, please do, we'd love more brainpower! Fork, commit your enhancements and do a pull request. If you want to get to even more involved please contact us!

### Sponsors

[](#sponsors)

[Arroyo Labs](http://www.arroyolabs.com/)

### License

[](#license)

Erdiko is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.9% 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 ~30 days

Total

2

Last Release

3213d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/691c8888935e19e59a2dd12e4e056e9b05991f4ebe696ef27fc01db8e9d1c984?d=identicon)[arroyolabs](/maintainers/arroyolabs)

---

Top Contributors

[![pinedamg](https://avatars.githubusercontent.com/u/818713?v=4)](https://github.com/pinedamg "pinedamg (22 commits)")[![arroyo](https://avatars.githubusercontent.com/u/378457?v=4)](https://github.com/arroyo "arroyo (7 commits)")

---

Tags

phpsessionsession-driversessionerdiko

### Embed Badge

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

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

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[oat-sa/tao-core

TAO core extension

66143.7k119](/packages/oat-sa-tao-core)[laminas/laminas-session

Object-oriented interface to PHP sessions and storage

8524.2M130](/packages/laminas-laminas-session)[vcian/pulse-active-sessions

A Laravel Pulse card to show active user session.

11582.7k](/packages/vcian-pulse-active-sessions)[jaxon-php/jaxon-core

Jaxon is an open source PHP library for easily creating Ajax web applications

74149.4k29](/packages/jaxon-php-jaxon-core)

PHPackages © 2026

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