PHPackages                             r2am9d/yii2-activity-log - 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. r2am9d/yii2-activity-log

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

r2am9d/yii2-activity-log
========================

A simplified yii2 module for tracking user web-based activities

011PHP

Since Jun 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/r2am9d/yii2-activity-log)[ Packagist](https://packagist.org/packages/r2am9d/yii2-activity-log)[ RSS](/packages/r2am9d-yii2-activity-log/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yiisoft)

Yii2 Activity Log Module
========================

[](#yii2-activity-log-module)

A simplified Yii2 module for tracking user web-based activities

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist r2am9d/yii2-activity-log

```

or add to the require-dev section of your `composer.json` file.

```
"r2am9d/yii2-activity-log": "*"

```

Once the extension is installed, simply add the lines below to your "modules" application configuration.

```
return [
    'modules' => [
        'activity-log' => [
            'class' => 'r2am9d\activitylog\Module',
        ],
    ],
];
```

Then add these lines to your "controllerMap" application configuration.

```
return [
    'controllerMap' => [
        'migrate' => [
            'class' => 'yii\console\controllers\MigrateController',
            'migrationNamespaces' => [
                'r2am9d\activitylog\migrations',
            ],
        ],
    ],
];
```

Lastly, run the migrations.

```
~$ php yii migrate
```

Usage
-----

[](#usage)

Apply the custom behavior to your Controller or Model class via inherited "behaviors" function.

```
/**
 * {@inheritdoc}
 */
public function behaviors()
{
    return [
        \r2am9d\activitylog\behaviors\ActivityLogBehavior::className(),
    ];
}
```

Accessing module
----------------

[](#accessing-module)

You can then access the module through the following URL:

```
http://localhost/path/to/index?r=activity-log

```

or if you have enabled pretty URLs, you may use the following URL:

```
http://localhost/path/to/index/activity-log

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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://avatars.githubusercontent.com/u/83020513?v=4)[Ram](/maintainers/r2am9d)[@r2am9d](https://github.com/r2am9d)

---

Top Contributors

[![r2am9d](https://avatars.githubusercontent.com/u/83020513?v=4)](https://github.com/r2am9d "r2am9d (12 commits)")

### Embed Badge

![Health badge](/badges/r2am9d-yii2-activity-log/health.svg)

```
[![Health](https://phpackages.com/badges/r2am9d-yii2-activity-log/health.svg)](https://phpackages.com/packages/r2am9d-yii2-activity-log)
```

###  Alternatives

[yahnis-elsts/admin-notices

A utility library for WordPress plugins that makes it easier to create admin notices. Supports persistently dismissible notices.

311.1k](/packages/yahnis-elsts-admin-notices)[jahvi/magento2-copy-theme-override

Magento 2 command to automatically copy files into active theme

124.5k](/packages/jahvi-magento2-copy-theme-override)

PHPackages © 2026

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