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

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

temant/session-manager
======================

A comprehensive PHP utility class for secure and efficient managing sessions.

v2.0.5(1y ago)0551MITPHPCI passing

Since Sep 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/EmadAlmahdi/Temant-SessionManager)[ Packagist](https://packagist.org/packages/temant/session-manager)[ RSS](/packages/temant-session-manager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (7)Used By (1)

Temant Session Manager PHP Package
==================================

[](#temant-session-manager-php-package)

[![Build Status](https://github.com/EmadAlmahdi/Temant-SessionManager/actions/workflows/ci.yml/badge.svg)](https://github.com/EmadAlmahdi/Temant-SessionManager/actions/workflows/ci.yml/badge.svg)[![Coverage Status](https://camo.githubusercontent.com/a6965de0fb073a30270010c545bf1987238530b0cf0d11ba9e01ac1f76687fa3/68747470733a2f2f636f6465636f762e696f2f67682f456d6164416c6d616864692f54656d616e742d53657373696f6e4d616e616765722f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://camo.githubusercontent.com/a6965de0fb073a30270010c545bf1987238530b0cf0d11ba9e01ac1f76687fa3/68747470733a2f2f636f6465636f762e696f2f67682f456d6164416c6d616864692f54656d616e742d53657373696f6e4d616e616765722f6272616e63682f6d61696e2f67726170682f62616467652e737667)[![License](https://camo.githubusercontent.com/593ef31139886164e5c3f56747746e1a1e2dcdea09b04019914e5abdc6ec8d39/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f456d6164416c6d616864692f54656d616e742d53657373696f6e4d616e61676572)](https://camo.githubusercontent.com/593ef31139886164e5c3f56747746e1a1e2dcdea09b04019914e5abdc6ec8d39/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f456d6164416c6d616864692f54656d616e742d53657373696f6e4d616e61676572)[![PHPStan](https://camo.githubusercontent.com/14995ff65edea59395c224e37e4fc66f91c1e601c1a58311e3c6f38c4fe37feb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c2532306d61782d627269676874677265656e)](https://camo.githubusercontent.com/14995ff65edea59395c224e37e4fc66f91c1e601c1a58311e3c6f38c4fe37feb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c2532306d61782d627269676874677265656e)

**Temant Session Manager** is a PHP package that simplifies session management in PHP applications. It provides an easy-to-use interface for starting and managing sessions, setting and getting session variables, and more.

Table of Contents
-----------------

[](#table-of-contents)

- [Temant\\Session PHP Package](#temantsession-php-package)
    - [Table of Contents](#table-of-contents)
    - [Installation](#installation)
    - [Usage](#usage)
    - [Contributing](#contributing)
    - [Issues](#issues)
    - [License](#license)

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

[](#installation)

You can install this package via Composer: composer require temant/session-manager

Usage
-----

[](#usage)

To start using this package, follow these simple steps:

Require your composer autoloader:

```
require_once('path/to/vendor/autoload.php');
```

Create a SessionManager Instance:

```
use Temant\SessionManager\SessionManager;
```

Create a new session instance

```
$session = new SessionManager();
```

Start a new session:

```
$session->start();
```

Set a session variable:

```
$session->set('user_id', 123);
```

Get the value of a session variable:

```
$userID = $session->get('user_id');
```

Check if a session variable exists:

```
if ($session->has('user_id')) {
    // Do something
}
```

Remove a session variable:

```
$session->remove('user_id');
```

Regenerate the session ID:

```
$session->regenerate();
```

Destroy the session:

```
$session->destroy();
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance45

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity44

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

Recently: every ~11 days

Total

6

Last Release

427d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e96f21e803c229bcc4ec2e9b3f83535aa1723c9981a67d95513faee24e27d4f?d=identicon)[Slvstar](/maintainers/Slvstar)

---

Top Contributors

[![EmadAlmahdi](https://avatars.githubusercontent.com/u/135208774?v=4)](https://github.com/EmadAlmahdi "EmadAlmahdi (7 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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