PHPackages                             yakeing/php\_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. yakeing/php\_session

AbandonedArchivedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

yakeing/php\_session
====================

This is a SESSION class function package, use more easily, just a few simple functions can use it.

v2.0.0(6y ago)52954MPL-2.0PHPPHP &gt;=5.6

Since Aug 6Pushed 5y agoCompare

[ Source](https://github.com/yakeing/php_session)[ Packagist](https://packagist.org/packages/yakeing/php_session)[ Docs](https://github.com/yakeing/php_session)[ RSS](/packages/yakeing-php-session/feed)WikiDiscussions main Synced yesterday

READMEChangelog (3)Dependencies (1)Versions (3)Used By (0)

SESSION
=======

[](#session)

This is a SESSION class function package, use more easily, just a few simple functions can use it.

Session Functions [Table of Contents](https://www.php.net/manual/en/ref.session.php).

### Travis CI badge

[](#travis-ci-badge)

[![Travis-ci](https://camo.githubusercontent.com/c64e4d5adfc4e385a5551bf632857f5f0309332af3510a47c8af97e7ffd1df54/68747470733a2f2f6170692e7472617669732d63692e636f6d2f79616b65696e672f7068705f73657373696f6e2e7376673f6272616e63683d6d61696e)](https://travis-ci.com/yakeing/php_session)

### codecov badge

[](#codecov-badge)

[![codecov](https://camo.githubusercontent.com/a314f5ece9d411b0762e950ab72cdef071104728343a2dd33b4ed43fa1ae3ca6/68747470733a2f2f636f6465636f762e696f2f67682f79616b65696e672f7068705f73657373696f6e2f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/yakeing/php_session)

### Github badge

[](#github-badge)

[![Downloads](https://camo.githubusercontent.com/cea6d31cb027739bcb2bf8e4c7b449ffae4179ea4ad0750b2aa01e86fdb4ff13/68747470733a2f2f342e76657263656c2e6170702f6769746875622f646f776e6c6f6164732f79616b65696e672f7068705f73657373696f6e3f69636f6e3d676974687562)](../../)[![Size](https://camo.githubusercontent.com/f7188b24df107bea0b1a76714284c9a763033efb6c99032fb0cc752def864048/68747470733a2f2f342e76657263656c2e6170702f6769746875622f73697a652f79616b65696e672f7068705f73657373696f6e3f69636f6e3d676974687562)](src)[![tag](https://camo.githubusercontent.com/6471ac39d708eb1c467f6bfd19ee487c24524233c95588dd6e16bd5cfb7320f6/68747470733a2f2f342e76657263656c2e6170702f6769746875622f7461672f79616b65696e672f7068705f73657373696f6e3f69636f6e3d676974687562)](../../releases)[![license](https://camo.githubusercontent.com/904c4bcc21898764c7b6b7edfba26ea0d5427757cfaee2837ee7bed32124b40b/68747470733a2f2f342e76657263656c2e6170702f7374617469632f6c6963656e73652f3535352f4d504c2d322e302f6665376433373f69636f6e3d676974687562)](LICENSE)[![languages](https://camo.githubusercontent.com/5275888fd9cd7a7b85d47b803d247819aa953b27342dfa420173152309ab1a18/68747470733a2f2f342e76657263656c2e6170702f7374617469632f6c616e67756167652f3535352f5048502f3334616265663f69636f6e3d676974687562)](../../search?l=php)

### Installation

[](#installation)

Use [Composer](https://getcomposer.org) to install the library. Of course, You can go to [Packagist](https://packagist.org/packages/yakeing/php_session) to view.

```

    $ composer require yakeing/php_session

```

### session init

[](#session-init)

- example

```
    $expire = 180;  //Default server 180 minutes client end
    $id = md5('uid'); //user ID, Default automatic generation
    $name = "PHPSESSID";
    $limiter = "private";
    $handler = null;
    $session = new session($expire, $id, $name, $limiter, $handler);
```

### FUNCTION

[](#function)

- example

```
    $name = 'admin';
    $value = 'pass';
    $session->Set($name, $value); //Set up a session Value
    $session->Get($name); //Get a session Value
    $session->Delete($name); //Write off a session Value
    $session->Unset(); //End all session Value
    $session->Destroy(); //End all session Value
```

[Sponsor](https://github.com/yakeing/Documentation/blob/master/Sponsor/README.md)
---------------------------------------------------------------------------------

[](#sponsor)

If you've got value from any of the content which I have created, then I would very much appreciate your support by payment donate.

[![Sponsor](https://camo.githubusercontent.com/8bf9004e5f53d2223ce47ceeed603c32154d9e6afa76039dd117bf91c5c1a685/68747470733a2f2f342e76657263656c2e6170702f7374617469632f53706f6e736f722f4541344141413f69636f6e3d6865617274)](https://github.com/yakeing/Documentation/blob/master/Sponsor/README.md)

Author
------

[](#author)

weibo: [yakeing](https://weibo.com/yakeing)

twitter: [yakeing](https://twitter.com/yakeing)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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

Every ~14 days

Total

2

Last Release

2506d ago

Major Versions

v1.3.0 → v2.0.02019-08-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/95aaf19e492f95c5180360b25e7197ff554625372973f3555b9792a07d5cb9f2?d=identicon)[yakeing](/maintainers/yakeing)

---

Top Contributors

[![yakeing](https://avatars.githubusercontent.com/u/6356091?v=4)](https://github.com/yakeing "yakeing (9 commits)")

---

Tags

php-sessionssessionsessionphp session

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laminas/laminas-session

Object-oriented interface to PHP sessions and storage

8223.7M127](/packages/laminas-laminas-session)[bryanjhv/slim-session

Session middleware and helper for Slim framework 4.

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

A modern take on PHP session-based flash messages

184229.7k8](/packages/plasticbrain-php-flash-messages)[rairlie/laravel-locking-session

Provide session locking in Laravel

91483.0k1](/packages/rairlie-laravel-locking-session)[vcian/pulse-active-sessions

A Laravel Pulse card to show active user session.

11377.7k](/packages/vcian-pulse-active-sessions)[odan/session

A Slim session handler

64215.2k23](/packages/odan-session)

PHPackages © 2026

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