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

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

mzur/kirby-defuse-session
=========================

Allows you to to write tests for code that uses the Kirby 3 session.

v1.0.0(7y ago)19292MITPHP

Since Aug 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mzur/kirby-defuse-session)[ Packagist](https://packagist.org/packages/mzur/kirby-defuse-session)[ RSS](/packages/mzur-kirby-defuse-session/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (5)Used By (2)

Kirby Defuse Session
====================

[](#kirby-defuse-session)

**Archived:** Use PHPUnit [process isolation](https://docs.phpunit.de/en/10.0/configuration.html#the-processisolation-attribute) instead.

[![Build Status](https://camo.githubusercontent.com/43f1f76bdb8e666452b1e00b55dd57ae84ce97b3f2f83a4c72be413e22f42ee4/68747470733a2f2f7472617669732d63692e6f72672f6d7a75722f6b697262792d6465667573652d73657373696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mzur/kirby-defuse-session)

Allows you to to write tests for code that uses the Kirby 3 session.

Usage
-----

[](#usage)

```
use Kirby\Cms\App;
use Mzur\Kirby\DefuseSession\Defuse;

public function testSession()
{
    Defuse::defuse();
    $session = App::instance()->session();
    $session->set('testKey', 'testValue');
    $this->assertEquals('testValue', $session->get('testKey'));
}
```

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

[](#installation)

```
composer require --dev mzur/kirby-defuse-session:@beta
```

Contributing
------------

[](#contributing)

Feel free to send a pull request!

Issues/Bugs
-----------

[](#issuesbugs)

Please use the [GitHub issue tracker](https://github.com/mzur/kirby-defuse-session/issues).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

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

Total

3

Last Release

2674d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2457311?v=4)[Martin Zurowietz](/maintainers/mzur)[@mzur](https://github.com/mzur)

---

Top Contributors

[![mzur](https://avatars.githubusercontent.com/u/2457311?v=4)](https://github.com/mzur "mzur (6 commits)")

---

Tags

kirbyphpsessiontestingtestingsessionkirby

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mzur-kirby-defuse-session/health.svg)

```
[![Health](https://phpackages.com/badges/mzur-kirby-defuse-session/health.svg)](https://phpackages.com/packages/mzur-kirby-defuse-session)
```

###  Alternatives

[phpunit/phpunit

The PHP Unit Testing framework.

20.0k910.7M134.8k](/packages/phpunit-phpunit)[phpunit/php-code-coverage

Library that provides collection, processing, and rendering functionality for PHP code coverage information.

8.9k892.4M1.5k](/packages/phpunit-php-code-coverage)[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.6k](/packages/mockery-mockery)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[symfony/phpunit-bridge

Provides utilities for PHPUnit, especially user deprecation notices management

2.5k201.2M4.2k](/packages/symfony-phpunit-bridge)[brianium/paratest

Parallel testing for PHP

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

PHPackages © 2026

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