PHPackages                             insulinjunkiede/clisession - 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. insulinjunkiede/clisession

ActiveLibrary

insulinjunkiede/clisession
==========================

Use the PHP built-in session manager on CLI

v0.1(9y ago)117MITPHP

Since Jan 20Pushed 9y agoCompare

[ Source](https://github.com/InsulinJunkieDe/CliSession)[ Packagist](https://packagist.org/packages/insulinjunkiede/clisession)[ RSS](/packages/insulinjunkiede-clisession/feed)WikiDiscussions master Synced 1mo ago

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

CLI Session Class
=================

[](#cli-session-class)

This library provides an command line &amp; object-oriented version of the php standard session management. Inside the wrapper it uses the default php session\_\*-commands

If you have questions or problems with installation or usage [create an Issue](https://github.com/InsulinJunkieDe/CliSession/issues).

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

[](#installation)

In order to install this library via composer run the following command in the console:

```
composer require insulinjunkiede/clisession
```

or add the package manually to your composer.json file in the require section:

```
"insulinjunkiede/clisession": "dev-master"
```

Usage examples
--------------

[](#usage-examples)

```
$session = new InsulinJunkieDe\CliSession\Session('.session', __DIR__);
/*
When creating a new session, the first parameter takes the file name and the 2nd
one the directory where is file should be written to.
Both an be omitted, but it won't work, since PHP is generating a new
session_id(and filename) each time you restart your CLI script.
So the first paramater is kind of mandatory, when you want to reuse the
session-content in the next CLI-call
*/
$session->setParam('key','value');
$session->getParam('key');
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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

3396d ago

### Community

Maintainers

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

---

Top Contributors

[![InsulinJunkieDe](https://avatars.githubusercontent.com/u/25230928?v=4)](https://github.com/InsulinJunkieDe "InsulinJunkieDe (3 commits)")

### Embed Badge

![Health badge](/badges/insulinjunkiede-clisession/health.svg)

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

PHPackages © 2026

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