PHPackages                             hendrignwn/yii2-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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. hendrignwn/yii2-log

ActiveYii2-extension[Logging &amp; Monitoring](/categories/logging)

hendrignwn/yii2-log
===================

Activity Logs function model

1136PHP

Since Nov 2Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2-Log
========

[](#yii2-log)

The main function is to record the changes in the model.

- There is a feature to allow users see these logs.

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

[](#installation)

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

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

```

or add

```
"hendrignwn/yii2-log": "dev-master"

```

to the require section of your `composer.json` file. run migration for database

```
yii migrate --migrationPath=@hendrignwn/log/migrations

```

add in modules section of main config

```
    'modules' => [
        ...
	   'log-module' => [
            'class' => hendrignwn\log\LogModule::className(),
        ],
        ...
    ]

```

add in the Model that you want to Log into function behavior()

```
    public function behaviors() {
 		return [
            ...
 			'hendrignwn\log\behaviors\LogBehavior',
 			...
 		];
 	}

```

or add in the parent Models if it is to set up the model that you want in the Log but this code 'hendrignwn\\log\\behaviors\\LogBehavior' not be reused.

```
    public function behaviors() {
 		return [
            ....
 			'hendrignwn\log\behaviors\LoggableBehavior',
 			....
 		];
    }

```

Usage
-----

[](#usage)

Once the extension is installed, check the url: \[your application base url\]/index.php/log-module

**Note: This Log only be accessed if the user has been logged. Otherwise it will be a error 403 permission access not allowed.**

License
-------

[](#license)

Hendri Gunawan

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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/10795945?v=4)[Hendri Gunawan](/maintainers/HendriGnwn)[@hendrignwn](https://github.com/hendrignwn)

---

Top Contributors

[![hendrign](https://avatars.githubusercontent.com/u/218601857?v=4)](https://github.com/hendrign "hendrign (9 commits)")[![hendrignwn](https://avatars.githubusercontent.com/u/10795945?v=4)](https://github.com/hendrignwn "hendrignwn (1 commits)")

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B10.9k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1938.5M263](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2326.5M316](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)

PHPackages © 2026

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