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

AbandonedArchivedLibrary

corex/session
=============

Session (Namespace, Page, Token, ...)

2.0.0(7y ago)01271MITPHPPHP ^7.2

Since May 31Pushed 7y agoCompare

[ Source](https://github.com/corex/session)[ Packagist](https://packagist.org/packages/corex/session)[ RSS](/packages/corex-session/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (4)Used By (1)

Session (Namespace, Page, Token, ...)
=====================================

[](#session-namespace-page-token-)

[![License](https://camo.githubusercontent.com/48881bf3230274ee3e518c93f29ad41308973d2e3a795f340432d83641416830/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636f7265782f73657373696f6e2e737667)](https://camo.githubusercontent.com/48881bf3230274ee3e518c93f29ad41308973d2e3a795f340432d83641416830/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636f7265782f73657373696f6e2e737667)[![Build Status](https://camo.githubusercontent.com/54f66f5a4d717adb872f992a0911541e66f5e9dc7a97c5d785c8614b3722a686/68747470733a2f2f7472617669732d63692e6f72672f636f7265782f73657373696f6e2e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/54f66f5a4d717adb872f992a0911541e66f5e9dc7a97c5d785c8614b3722a686/68747470733a2f2f7472617669732d63692e6f72672f636f7265782f73657373696f6e2e7376673f6272616e63683d6d6173746572)[![codecov](https://camo.githubusercontent.com/d4531f50d430c679f2ffd6b63d5413cfb4b3dd2263f85923e75161c82de37dbc/68747470733a2f2f636f6465636f762e696f2f67682f636f7265782f73657373696f6e2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://camo.githubusercontent.com/d4531f50d430c679f2ffd6b63d5413cfb4b3dd2263f85923e75161c82de37dbc/68747470733a2f2f636f6465636f762e696f2f67682f636f7265782f73657373696f6e2f6272616e63682f6d61737465722f67726170682f62616467652e737667)

### Session

[](#session)

Session handler.

A few examples.

```
// Set session variable.
Session::set('actor', 'Roger Moore');

// Get session variable.
$actor = Session::get('actor');

// Check if session variable exists.
if (!Session::has('actor')) {
}
```

### Token

[](#token)

Token handler (uses Session handler).

A few examples.

```
// Create csrf token.
$csrfToken = Token::create('csrf');

// Check csrf token.
if (!Token::isValid($csrfToken)) {
}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~192 days

Total

2

Last Release

2713d ago

Major Versions

1.0.0 → 2.0.02018-12-09

PHP version history (2 changes)1.0.0PHP &gt;=7.0

2.0.0PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/2168107cb28f49e937f963a925553ebac5923aa27cad2e1cf90ddbcabf663d6d?d=identicon)[corex](/maintainers/corex)

---

Top Contributors

[![corex](https://avatars.githubusercontent.com/u/21259173?v=4)](https://github.com/corex "corex (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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