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

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

aeforge/session
===============

AEForge Session component. Providing a way to deal with session across the application

V1.0.0(2y ago)14MITPHPPHP &gt;=8.0.0

Since Oct 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/aeforge/Session)[ Packagist](https://packagist.org/packages/aeforge/session)[ RSS](/packages/aeforge-session/feed)WikiDiscussions 1.0 Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Session
=======

[](#session)

AEForge Session component. Providing a way to deal with session across the application.

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

[](#installation)

To install via composer:

```
  composer require aeforge/session

```

To clone the project:

```
    https://github.com/aeforge/Session.git

```

Usage/Examples
--------------

[](#usageexamples)

### Example

[](#example)

```
use Aeforge\Session\Session;

// Start a new session instance
$session = new Session();
// Add expiring time to 60 (in minutes)
$session->register(60);
//Set a normal session key and value
$session->set("session_key", "session_value");
//Set a flashed session key and value (useful for forms errors for example)
$session->flash("flashed_key", "flashed_value");
// Get a normal session value using a key
echo $session->get("hello");
//Get a flashed session value using a key
echo $session->getFlashed("hello");
// Clears both the flash session array and the data session array(normal session)
$session->clear();
// Clear the data array only(normal session)
$session->clearData();
// Clear the flashed array only
$session->clearFlashed();
// Ends the session
$session->destroy();
// Regenerates the session id
$session->regenerate();
// Check if the session expired
$session->isExpired ();
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Every ~0 days

Total

2

Last Release

926d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fbcbae37e5966c425e91d185173f6f30ef647069c864929368c3807bb4c2f7c2?d=identicon)[aeforge](/maintainers/aeforge)

---

Top Contributors

[![aeforge](https://avatars.githubusercontent.com/u/148719514?v=4)](https://github.com/aeforge "aeforge (2 commits)")

### Embed Badge

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

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

###  Alternatives

[unisolutions/silverstripe-copybutton

Adds copy button to the GridField.

1736.4k](/packages/unisolutions-silverstripe-copybutton)[shomisha/stubless

A package for generating PHP files without stubs.

397.1k3](/packages/shomisha-stubless)[sagautam5/local-states-nepal

PHP Package for data set of local states of Nepal

334.7k](/packages/sagautam5-local-states-nepal)

PHPackages © 2026

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