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

ActiveLibrary

marcosdipaolo/session
=====================

A PHP Session package

1.0.2(5y ago)0671MITPHPPHP &gt;=7.2

Since Jan 6Pushed 5y ago1 watchersCompare

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

READMEChangelog (3)DependenciesVersions (5)Used By (1)

Session
=======

[](#session)

### A PHP Session Package

[](#a-php-session-package)

Small library where you can manage the PHP session either with the `session` helper or instantiating the `MDP\Session` class

#### Instalation

[](#instalation)

```
composer require marcosdipaolo/session

```

#### Usage

[](#usage)

```
$session = new \MDP\Session();
$session->put('someKey', 'someValue');
$session->get(); // ["someKey" => "someValue"]
$session->get('someKey') // "someValue"
```

#### The `session` helper method

[](#the-session-helper-method)

The `session` helper method equals a `MDP\Session` instance. You can then chain any of its methods.

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

#### Methods

[](#methods)

MethodPurpose`get`You get the session instance. It receives an optional argument, in case of its existence the method returns the element on that key of the session content.`put`Store a value into the session. It receives 2 arguments. The first is the key where the value is going to be stored. The second is the value itself.`has`It receives a key as a string parameter and it returns whether the session contains that key or not.`forget`It receive a key as only argument and unsets it.`destroy`It performs a `session_destroy()``unset`It performs a `session_unset()`

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

3

Last Release

1949d ago

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

1.0.1PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/06f6b2fab6ea32af98e59f9c8ab5f35f64198042b657a3a17cde5e05fa8c9f49?d=identicon)[marcosdipaolo](/maintainers/marcosdipaolo)

---

Top Contributors

[![marcosdipaolo](https://avatars.githubusercontent.com/u/22824656?v=4)](https://github.com/marcosdipaolo "marcosdipaolo (3 commits)")[![marcosdipaoloSV](https://avatars.githubusercontent.com/u/76181292?v=4)](https://github.com/marcosdipaoloSV "marcosdipaoloSV (3 commits)")

---

Tags

phpsession

### Embed Badge

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

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

PHPackages © 2026

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