PHPackages                             jansuchanek/npresence - 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. jansuchanek/npresence

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

jansuchanek/npresence
=====================

Live user presence, heartbeat tracking, and activity logging for Nette Framework

v1.0.0(1mo ago)02↓100%MITPHPPHP &gt;=8.1CI failing

Since Mar 19Pushed 1mo agoCompare

[ Source](https://github.com/JanSuchanek/npresence)[ Packagist](https://packagist.org/packages/jansuchanek/npresence)[ RSS](/packages/jansuchanek-npresence/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

NPresence — Heartbeat &amp; Session Tracking
============================================

[](#npresence--heartbeat--session-tracking)

User presence tracking for Nette applications — heartbeats, active sessions, activity logging, browser detection.

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

[](#installation)

```
composer require jansuchanek/npresence
```

Nette Integration
-----------------

[](#nette-integration)

```
extensions:
    presence: NPresence\PresenceExtension

presence:
    staleMinutes: 5  # optional, default 5
```

Usage
-----

[](#usage)

### In Presenter (heartbeat endpoint)

[](#in-presenter-heartbeat-endpoint)

```
use NPresence\PresencePresenterTrait;

class SecurityPresenter extends BasePresenter
{
    use PresencePresenterTrait;
}
```

### Service API

[](#service-api)

```
use NPresence\PresenceService;

$service->heartbeat($userId, $sessionId, $userAgent);
$activeSessions = $service->getActiveSessions();
$service->logActivity($userId, 'login', $request);
$service->cleanupStaleSessions();
```

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

[](#requirements)

- PHP &gt;= 8.1
- doctrine/dbal

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance89

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

54d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/38ce2f53e74d810d50aca863e1a3b954f34f1629dd01a6a8c7d4d582e7459e63?d=identicon)[JanSuchanek](/maintainers/JanSuchanek)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/jansuchanek-npresence/health.svg)

```
[![Health](https://phpackages.com/badges/jansuchanek-npresence/health.svg)](https://phpackages.com/packages/jansuchanek-npresence)
```

###  Alternatives

[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[eliashaeussler/typo3-form-consent

Extension for TYPO3 CMS that adds double opt-in functionality to EXT:form

1481.0k](/packages/eliashaeussler-typo3-form-consent)[ronasit/laravel-helpers

Provided helpers function and some helper class.

1475.7k13](/packages/ronasit-laravel-helpers)[inspiredminds/contao-fieldset-duplication

Contao extension to allow the duplication of form fieldsets in the front end by the user for additional input fields.

158.2k1](/packages/inspiredminds-contao-fieldset-duplication)[numero2/contao-storelocator

Contao Plugin for managing stores (or in common address data) and providing a frontend-search based on geo data

121.5k](/packages/numero2-contao-storelocator)

PHPackages © 2026

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