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(6d ago)02↓100%MITPHPPHP &gt;=8.1CI failing

Since Mar 19Pushed 4d agoCompare

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

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

39

—

LowBetter than 87% of packages

Maintenance99

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

6d 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

[42coders/document-templates

Document template management package.

19939.4k](/packages/42coders-document-templates)[naoray/eloquent-model-analyzer

Helpful methods to gain more information about eloquent model classes.

16429.8k1](/packages/naoray-eloquent-model-analyzer)[codefog/tags-bundle

Tags bundle for Contao Open Source CMS

1390.3k8](/packages/codefog-tags-bundle)[oveleon/contao-recommendation-bundle

Recommendation integration for Contao Open Source CMS

106.8k1](/packages/oveleon-contao-recommendation-bundle)[binshops/laravel-ticket

A simple ticketing system for Laravel 5.1 – 5.8 and 6.\* - 7.\* - 8.\* - 9.\* - 10.\* -which integrates smoothly with Laravel default users and auth system

261.0k](/packages/binshops-laravel-ticket)

PHPackages © 2026

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