PHPackages                             cornernote/yii-audit-module - 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. cornernote/yii-audit-module

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

cornernote/yii-audit-module
===========================

Track and store usage information including page requests, database field changes and system errors.

1.1.15(4y ago)226.8k↓85.7%13[11 issues](https://github.com/cornernote/yii-audit-module/issues)BSD-3-ClausePHP

Since Dec 20Pushed 4y ago12 watchersCompare

[ Source](https://github.com/cornernote/yii-audit-module)[ Packagist](https://packagist.org/packages/cornernote/yii-audit-module)[ RSS](/packages/cornernote-yii-audit-module/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (2)Versions (20)Used By (0)

Yii Audit Module
================

[](#yii-audit-module)

Track and display usage information including page requests, database field changes, php errors and yii logs.

Features
--------

[](#features)

### Visitor Request Tracking

[](#visitor-request-tracking)

- Track site activity including everything you need to know about the request.
- The error handler will automatically create an AuditRequest record for each visitor hit.
- When the application ends it will update the AuditRequest with memory and time information.

Tracks the following information:

- Links - Requested URL, referring URL, redirecting to URL (read from the headers at the end of the application)
- User - Visitors IP Address and logged in user's ID
- Superglobals - (`$_GET`/`$_POST`/`$_SESSION`/`$_FILES`/`$_COOKIE`), the arrays are serialized then compressed using gzip
- Timers - Start and end times of the application
- Memory - Memory usage and peak memory usage

### Model Field Tracking

[](#model-field-tracking)

- Tracks the old and new values each time your model is saved.
- Behavior can easily be attached to any model you want to track field changes.
- Each field change is related to an AuditRequest so you can see the entire state of the visitors action.
- Performs multiple inserts in a single query with `CDbCommandBuilder::createMultipleInsertCommand()`.
- Provides views that can be rendered into your application to show changed fields for your model.

### Error Tracking

[](#error-tracking)

- Full error stack dump is saved, even in live mode.
- Catches all errors, including fatal errors.
- View all the collected data from the module interface.
- Each error is related to an AuditRequest so you can see the entire state of the visitors action.

### Log Tracking

[](#log-tracking)

- Save logs to your database for easy real-time debugging or for checking on historical logs.
- Each log is related to an AuditRequest so you can see the entire state of the visitors action.

Resources
---------

[](#resources)

- **[Documentation](http://cornernote.github.io/yii-audit-module)**
- **[GitHub Project](https://github.com/cornernote/yii-audit-module)**
- **[Yii Extension](http://www.yiiframework.com/extension/yii-audit-module)**

Support
-------

[](#support)

- Does this README need improvement? Go ahead and [suggest a change](https://github.com/cornernote/yii-audit-module/edit/master/README.md).
- Found a bug, or need help using this project? Check the [open issues](https://github.com/cornernote/yii-audit-module/issues) or [create an issue](https://github.com/cornernote/yii-audit-module/issues/new).

License
-------

[](#license)

[BSD-3-Clause](https://raw.github.com/cornernote/yii-audit-module/master/LICENSE), Copyright © 2013-2014 [Mr PHP](mailto:info@mrphp.com.au)

[![Mr PHP](https://camo.githubusercontent.com/5c2a4e06b8343bc0132af3775a46e3cbe9b40f69708f11bf40869fc560fdde17/68747470733a2f2f7261772e6769746875622e636f6d2f636f726e65726e6f74652f6d727068702d6173736574732f6d61737465722f696d672f636f64652d62616e6e65722e706e67)](http://mrphp.com.au)

[![Latest Stable Version](https://camo.githubusercontent.com/c5262ad18f43b4d2a4af3de625d4a03e384377aafdf58c77995a466039a554c2/68747470733a2f2f706f7365722e707567782e6f72672f636f726e65726e6f74652f7969692d61756469742d6d6f64756c652f762f737461626c652e706e67)](https://github.com/cornernote/yii-audit-module/releases/latest) [![Total Downloads](https://camo.githubusercontent.com/dce693ea4a6b50f9dd41681053f1ae4e9e092e18320696a67cf4d795bca54d6f/68747470733a2f2f706f7365722e707567782e6f72672f636f726e65726e6f74652f7969692d61756469742d6d6f64756c652f646f776e6c6f6164732e706e67)](https://packagist.org/packages/cornernote/yii-audit-module) [![Monthly Downloads](https://camo.githubusercontent.com/acc7a0ef821b4b2460bc5c715b10e5c00b7a5e176be8b333a2e462accde73efa/68747470733a2f2f706f7365722e707567782e6f72672f636f726e65726e6f74652f7969692d61756469742d6d6f64756c652f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/cornernote/yii-audit-module) [![Latest Unstable Version](https://camo.githubusercontent.com/cd9dbb9d74b186db6234e194a2e8c94b2b3f4fbb78d4a3f8353b5fa4a52c4594/68747470733a2f2f706f7365722e707567782e6f72672f636f726e65726e6f74652f7969692d61756469742d6d6f64756c652f762f756e737461626c652e706e67)](https://github.com/cornernote/yii-audit-module) [![Build Status](https://camo.githubusercontent.com/73b3debaed4f0dcb7bd8bf4952ab35f49a41a0677a0c0078ae9127c22d033ff1/68747470733a2f2f7472617669732d63692e6f72672f636f726e65726e6f74652f7969692d61756469742d6d6f64756c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/cornernote/yii-audit-module) [![License](https://camo.githubusercontent.com/fcf154ef5e9243e770b5b15742075a44ce20f92af073a0056714b530f036b590/68747470733a2f2f706f7365722e707567782e6f72672f636f726e65726e6f74652f7969692d61756469742d6d6f64756c652f6c6963656e73652e706e67)](https://raw.github.com/cornernote/yii-audit-module/master/LICENSE)

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 98.5% 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 ~183 days

Recently: every ~384 days

Total

18

Last Release

1460d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/07c84a589344489e8195ec1c6afcfa3abcc23a73092ceaa4ca60da96355c4d16?d=identicon)[cornernote](/maintainers/cornernote)

---

Top Contributors

[![cornernote](https://avatars.githubusercontent.com/u/51875?v=4)](https://github.com/cornernote "cornernote (198 commits)")[![techbin](https://avatars.githubusercontent.com/u/10051026?v=4)](https://github.com/techbin "techbin (2 commits)")[![Talwoasc](https://avatars.githubusercontent.com/u/8082028?v=4)](https://github.com/Talwoasc "Talwoasc (1 commits)")

---

Tags

loggingerror-handlerAudityiimrphprequest loggingmodel logging

### Embed Badge

![Health badge](/badges/cornernote-yii-audit-module/health.svg)

```
[![Health](https://phpackages.com/badges/cornernote-yii-audit-module/health.svg)](https://phpackages.com/packages/cornernote-yii-audit-module)
```

###  Alternatives

[sentry/sentry

PHP SDK for Sentry (http://sentry.io)

1.9k247.1M335](/packages/sentry-sentry)[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k127.1M203](/packages/sentry-sentry-laravel)[sentry/sdk

This is a meta package of sentry/sentry. We recommend using sentry/sentry directly.

327139.0M166](/packages/sentry-sdk)[bedezign/yii2-audit

Yii2 Audit records and displays web/cli requests, database changes, php/js errors and associated data.

202705.8k4](/packages/bedezign-yii2-audit)[muhammadsadeeq/laravel-activitylog-ui

A beautiful, modern UI for Spatie's Activity Log with advanced filtering, analytics, and real-time features.

17717.0k](/packages/muhammadsadeeq-laravel-activitylog-ui)[sammaye/auditrail2

A reload of the popular audit trail extension

3318.2k4](/packages/sammaye-auditrail2)

PHPackages © 2026

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