PHPackages                             flextype-components/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. flextype-components/session

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

flextype-components/session
===========================

Session Component provides basic methods to work with session.

v1.1.1(7y ago)35.3k21MITPHPPHP ^7.1.3

Since Oct 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/flextype-components/session)[ Packagist](https://packagist.org/packages/flextype-components/session)[ Docs](https://github.com/flextype-components/session)[ RSS](/packages/flextype-components-session/feed)WikiDiscussions master Synced 3d ago

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

Session Component
=================

[](#session-component)

[![version](https://camo.githubusercontent.com/98461fd39a6ad414ce4f6539d637885f04a4138fba65a452d579c06fa284c719/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e312e312d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265 "Version")](https://camo.githubusercontent.com/98461fd39a6ad414ce4f6539d637885f04a4138fba65a452d579c06fa284c719/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e312e312d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)[![MIT License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/flextype-components/session/blob/master/LICENSE)

### Installation

[](#installation)

```
composer require flextype-components/session

```

### Usage

[](#usage)

Start the session.

```
Session::start();
```

Delete one or more session variables.

```
Session::delete('user');
```

Destroy the session.

```
Session::destroy();
```

Check if a session variable exists.

```
if (Session::exists('user')) {
    // Do something...
}
```

Get a variable that was stored in the session.

```
echo Session::get('user');
```

Return the sessionID.

```
echo Session::getSessionId();
```

Store a variable in the session.

```
Session::set('user', 'Awilum');
```

License
-------

[](#license)

See [LICENSE](https://github.com/flextype-components/session/blob/master/LICENSE)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

2880d ago

PHP version history (2 changes)v1.0.2PHP &gt;=5.3.0

v1.0.3PHP ^7.1.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/477114?v=4)[Sergey Romanenko](/maintainers/Awilum)[@Awilum](https://github.com/Awilum)

---

Top Contributors

[![Awilum](https://avatars.githubusercontent.com/u/477114?v=4)](https://github.com/Awilum "Awilum (11 commits)")

---

Tags

session

### Embed Badge

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

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

###  Alternatives

[bryanjhv/slim-session

Session middleware and helper for Slim framework 4.

233961.5k16](/packages/bryanjhv-slim-session)[plasticbrain/php-flash-messages

A modern take on PHP session-based flash messages

184229.6k8](/packages/plasticbrain-php-flash-messages)[vcian/pulse-active-sessions

A Laravel Pulse card to show active user session.

11469.2k](/packages/vcian-pulse-active-sessions)[ikkez/f3-flash

Add simple Flash Messages and Flash Keys to PHP Fat-Free Framework

1926.0k5](/packages/ikkez-f3-flash)[kevinsimard/laravel-cookieless-session

Laravel middleware to start a cookieless session

1417.0k](/packages/kevinsimard-laravel-cookieless-session)[compwright/php-session

Standalone session implementation that does not rely on the PHP session module or the $\_SESSION global, ideal for ReactPHP applications

189.4k](/packages/compwright-php-session)

PHPackages © 2026

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