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

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

internetpixels/session-handler
==============================

Handle sessions in your application with this PHP library

1.0.0(8y ago)110PHPPHP &gt;=7.1

Since Dec 23Pushed 8y agoCompare

[ Source](https://github.com/internetpixels/session-manager)[ Packagist](https://packagist.org/packages/internetpixels/session-handler)[ RSS](/packages/internetpixels-session-handler/feed)WikiDiscussions master Synced 2w ago

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

Session manager for PHP
=======================

[](#session-manager-for-php)

Handle sessions in your application with this PHP library.

This is a open-source library. Please consider a link to this repository when you're actively using it.

[![License](https://camo.githubusercontent.com/cf76db379873b010c163f9cf1b5de4f5730b5a67/68747470733a2f2f6261646765732e66726170736f66742e636f6d2f6f732f6d69742f6d69742e7376673f763d313032)](https://github.com/internetpixels/session-manager)[![Build Status](https://camo.githubusercontent.com/cbef79ef3dc21ce8467422359837836d2a30e3516b6059c7b6008ae4e106bed6/68747470733a2f2f7472617669732d63692e6f72672f696e7465726e6574706978656c732f73657373696f6e2d6d616e616765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/internetpixels/session-manager)[![Maintainability](https://camo.githubusercontent.com/df4d5abe08f8679d606259fd2eb2b28bee5510696e3c178de160e920fa3e37bf/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f34336337623137643533396233383364363861312f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/internetpixels/session-manager/maintainability)

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

[](#installation)

Install this PHP session manager by using composer:

```
composer require internetpixels/session-handler

```

Basic examples
--------------

[](#basic-examples)

### Set a new session

[](#set-a-new-session)

In order to set a new session, you'll need to create a new session entity.

```
$manager = new SessionManager();
$testSession = new SessionEntity();
$testSession->setName( 'my_session' );
$testSession->setValue( 'Some value in the session' );

$manager->set( $testSession );

```

### Validate a session

[](#validate-a-session)

If you want to validate a session, simply call the `exists` method.

```
$manager = new SessionManager();
if( $manager->exists( 'my_session' ) ) {
	echo 'Exists!';
}
else {
	echo 'Create session..';
}

```

### Get a session

[](#get-a-session)

Getting the session as an object is even easier. Simply call the `get` method, with an optional default value.

```
$manager = new SessionManager();

/** @var SessionEntity $session */
$session = $manager->get( 'my_session' );

```

If you want to use a default value when the session is not available, you might want to use the default value.

```
$manager = new SessionManager();

/** @var SessionEntity $session */
$session = $manager->get( 'test_non_existing', 'my value' );

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

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

3111d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7113270?v=4)[Peter van Wilderen](/maintainers/Petervw)[@Petervw](https://github.com/Petervw)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[devgeniem/acf-codifier

ACF Codifier

133222.8k30](/packages/devgeniem-acf-codifier)[waavi/url-shortener

Url Shortener for Laravel 5 with support for Google and Bitly drivers.

64178.1k](/packages/waavi-url-shortener)[minter/minter-php-bip-44

2312.4k9](/packages/minter-minter-php-bip-44)

PHPackages © 2026

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