PHPackages                             nicktacular/php-session-tester - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. nicktacular/php-session-tester

ActiveLibrary[Testing &amp; Quality](/categories/testing)

nicktacular/php-session-tester
==============================

A little testing tool for PHP session handlers

094PHP

Since Jan 30Pushed 11y ago1 watchersCompare

[ Source](https://github.com/nicktacular/php-session-emulator)[ Packagist](https://packagist.org/packages/nicktacular/php-session-tester)[ RSS](/packages/nicktacular-php-session-tester/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Session Emulator
====================

[](#php-session-emulator)

This is a little tool that you can use to emulate how PHP uses a session handler. If, for example, you write your own [session handler](https://github.com/nicktacular/php-mongo-session) and wish to test it, this tool will help by emulating how PHP's `session_*()` functions work in a way that you can unit test your session handler.

Requirements
------------

[](#requirements)

If you're on PHP ≥ 5.3, then just Composer. If you're running PHP &lt; 5.3, there are no other requirements.

Installing
----------

[](#installing)

If you're using PHP ≥ 5.3, you can install using composer, you can install quite simply like so:

```
composer require nicktacular/php-session-emulator --dev

```

If you're using PHP &lt; 5.3, you can simple clone this repo and include these in your test bootstrap:

```
include '/path/to/src/n1/Session/Emulator.php';
include '/path/to/src/n1/Session/HttpCookie.php';
```

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

[](#how-to-use)

Docs will be done soon.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d6962dea811c2bc8482dd78bad8773492cb5fc07ba0ecc8aee5e534c257c7ec?d=identicon)[nicktacular](/maintainers/nicktacular)

---

Top Contributors

[![nicktacular](https://avatars.githubusercontent.com/u/810546?v=4)](https://github.com/nicktacular "nicktacular (8 commits)")

### Embed Badge

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

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

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M571](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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