PHPackages                             kodi-app/kodi-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. [Framework](/categories/framework)
4. /
5. kodi-app/kodi-session

ActiveLibrary[Framework](/categories/framework)

kodi-app/kodi-session
=====================

KodiApp Session

v0.9.1(8y ago)0201Apache-2.0PHPPHP ^7.1

Since Sep 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/kodi-app/kodi-session)[ Packagist](https://packagist.org/packages/kodi-app/kodi-session)[ Docs](https://github.com/kodi-app/kodi-session)[ RSS](/packages/kodi-app-kodi-session/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (1)

SessionProvider
===============

[](#sessionprovider)

This repository contains different Session implementation for KodiApp.

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

[](#installation)

```
$ composer require kodi-app/kodi-session
```

Configure SessionHook
---------------------

[](#configure-sessionhook)

### PandabaseSessionHook

[](#pandabasesessionhook)

PandabaseSessionHook implementation is based on Symfony's PdoSessionHandler.

```
$application->run([
    // ...
    KodiConf::HOOKS => [
        // ...
        [
            "class_name" => PandabaseSessionHook::class,
            "parameters" => [
                // Optional, you have to set it when you have more Connection instance in ConnectionManager
                "connection_name"  => "default",

                // Optional, 'options' parameter is same as PdoSessionHandler's 'options' parameter
                "options" => [
                    // ...
                ]
            ]
        ],
        // ...
    ],
    // ...
]);
```

You find details about PdoSessionHandler [here](https://symfony.com/doc/current/doctrine/pdo_session_storage.html).

You find details about Pandabase [here](https://github.com/nagyatka/pandabase).

Configure SessionProvider
-------------------------

[](#configure-sessionprovider)

```
$application->run([
    KodiConf::SERVICES => [
        SessionProvider::class
    ]
]);
```

How to use SessionProvider
--------------------------

[](#how-to-use-sessionprovider)

```
/** @var Session $session */
$session = Application::get("session")

// Get username value from session (same as $_SESSION["username"]). If it doesnt exist returns with "anon".
$username = $session->get("username","anon")

// Set a new username
$new_username = "john_doe";
$session->set("username",$new_username);
```

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~15 days

Total

2

Last Release

3238d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c4487ce24f1430bdd6cb97b9a532d2b59c270f1d27b6666c510d786fcdc0d737?d=identicon)[kodi-app](/maintainers/kodi-app)

---

Top Contributors

[![nagyatka](https://avatars.githubusercontent.com/u/3961400?v=4)](https://github.com/nagyatka "nagyatka (4 commits)")[![kodi-app](https://avatars.githubusercontent.com/u/31473318?v=4)](https://github.com/kodi-app "kodi-app (1 commits)")

---

Tags

phpframeworksessionkodiapp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.9k556.2M21.3k](/packages/laravel-framework)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k257.3M12.3k](/packages/symfony-framework-bundle)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

86337.5k](/packages/flow-php-flow)[contao-community-alliance/dc-general

Universal data container for Contao

1581.4k93](/packages/contao-community-alliance-dc-general)[hunzhiwange/framework

The QueryPHP Framework.

6316.0k2](/packages/hunzhiwange-framework)

PHPackages © 2026

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