PHPackages                             tugmaks/yii2-lastseen - 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. tugmaks/yii2-lastseen

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

tugmaks/yii2-lastseen
=====================

Automatically fills last activity time for current user

0.3(9y ago)1264MITPHP

Since Dec 9Pushed 9y agoCompare

[ Source](https://github.com/tugmaks/yii2-lastseen)[ Packagist](https://packagist.org/packages/tugmaks/yii2-lastseen)[ RSS](/packages/tugmaks-yii2-lastseen/feed)WikiDiscussions master Synced today

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

Yii2 Last Seen Behavior
=======================

[](#yii2-last-seen-behavior)

Automatically fills last activity time for current user

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist tugmaks/yii2-lastseen "0.2"

```

or add

```
"tugmaks/yii2-lastseen": "0.3"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the behavior is installed, simply use it in your code by adding this lines to application config:

```
    'as lastSeen'=>[
        'class'=>'tugmaks\behaviors\LastSeen\LastSeenBehavior',
        'lastSeenAttribute'=>'last_seen' // attribute that stores last seen time in user table
        // uncomment this line if you store last seen as datetime, by default beahavior saves as unixtime
        //'value'=> new \yii\db\Expression('NOW()'),
    ]```
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

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

Total

3

Last Release

3389d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c3c489ffecb0524e5825675ae8a5d14cec43b2264b750c8a04e8674f9b3ce422?d=identicon)[tugmaks](/maintainers/tugmaks)

---

Top Contributors

[![tugmaks](https://avatars.githubusercontent.com/u/3036462?v=4)](https://github.com/tugmaks "tugmaks (7 commits)")

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/tugmaks-yii2-lastseen/health.svg)

```
[![Health](https://phpackages.com/badges/tugmaks-yii2-lastseen/health.svg)](https://phpackages.com/packages/tugmaks-yii2-lastseen)
```

###  Alternatives

[vyants/yii2-daemon

Extension provides functionality for simple daemons creation and control

7760.0k](/packages/vyants-yii2-daemon)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1454.6k](/packages/dmstr-yii2-cookie-consent)[imanilchaudhari/yii2-currency-converter

This extension will help to find out current currency conversion rate.

1911.7k](/packages/imanilchaudhari-yii2-currency-converter)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1358.5k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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