PHPackages                             hafizhassan/yii2-audit-trail-oracle - 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. hafizhassan/yii2-audit-trail-oracle

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

hafizhassan/yii2-audit-trail-oracle
===================================

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

00PHP

Since Nov 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/hafizhassan/yii2-audit-trail-oracle)[ Packagist](https://packagist.org/packages/hafizhassan/yii2-audit-trail-oracle)[ RSS](/packages/hafizhassan-yii2-audit-trail-oracle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Audit
==========

[](#yii2-audit)

[![Join Chat](https://camo.githubusercontent.com/d2564c910189e9b0564bc25c2776097d674daa07a4060c3aa51b60cb1a476b0b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6769747465722d6a6f696e253230636861742d626c75652e7376673f7374796c653d666c61742d737175617265)](https://gitter.im/hafizhassan/yii2-audit?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![Latest Version](https://camo.githubusercontent.com/cc7e8727d3a131faab8bf1a5977f14fccfc9a2ecf7ddaf01897261433f53e585/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f686166697a68617373616e2f796969322d61756469742e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://github.com/hafizhassan/yii2-audit/tags)[![Software License](https://camo.githubusercontent.com/b60331a2084501dc07cf6d6964c0da58dd005d89c45cf3b28b4b22b60f5ec00f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4253442d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/hafizhassan/yii2-audit/blob/master/LICENSE.md)[![Build Status](https://camo.githubusercontent.com/b7ecf139f4d5d0b0afbb19f8df396b2d01d6d392291cb7131680224402515003/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f686166697a68617373616e2f796969322d61756469742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/hafizhassan/yii2-audit)[![HHVM](https://camo.githubusercontent.com/25fc473211c6d6e431c967a76bb36aa3d3d23689dbd5de57ce6caae41ad9fe40/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f686166697a68617373616e2f796969322d61756469742e7376673f7374796c653d666c61742d737175617265)](http://hhvm.h4cc.de/package/hafizhassan/yii2-audit)[![Coverage Status](https://camo.githubusercontent.com/72e784c230996e7c31039b077d65db8b50648433ac61636c2f48f5b226fb786b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f686166697a68617373616e2f796969322d61756469742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/hafizhassan/yii2-audit/code-structure)[![Quality Score](https://camo.githubusercontent.com/628e4b3b725bd5d743ca472c9ee4767cf770ac7793735dff067d91f0b3eddf3b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f686166697a68617373616e2f796969322d61756469742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/hafizhassan/yii2-audit)[![Total Downloads](https://camo.githubusercontent.com/1d4e463f85274d13f78005fd7ab0bd9ac11e9906aa0ed2961e951a500a2d67e6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f686166697a68617373616e2f796969322d61756469742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hafizhassan/yii2-audit)[![Yii2 Framework](https://camo.githubusercontent.com/3ff0c442887a9ac3e5f8694726009b7d059a3f34b1d9a0cdc9f3f20969d98a82/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f657874656e73696f6e2d596969325f4672616d65776f726b2d677265656e2e7376673f7374796c653d666c61742d737175617265)](http://www.yiiframework.com/extension/yii2-audit)

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

Features
--------

[](#features)

### Powerful, yet Simple

[](#powerful-yet-simple)

- Installs as a simple module so it can be added without any hassle.
- You can either track specific actions and nothing else or exclude specific routes from logging (wildcard supported).
- View your data. The module contains a nice viewer that is automatically made available when you add it to your configuration. It has configurable permissions to limit access to this functionality by IPs, roles or users.

### Minimal Footprint

[](#minimal-footprint)

Tracks minimal data in the base entry:

- `user_id` - User ID of the visitor (if any), based on `Yii::$app->user->id`.
- `ip` - IP Address of the visitor.
- `request_method` - The method used to generate the request, eg: `CLI` for console requests and `GET`, `POST`, `DELETE`, `PUT`, `PATCH`, `OPTIONS` or `HEAD` for web requests.
- `ajax` - If the page was requested using ajax.
- `route` - The controller and action of the request.
- `duration` - How long the request took to serve.
- `memory_max` - The peak memory usage during the request.
- `created` - The datetime the entry was created.

### Log Data using Configurable Panels

[](#log-data-using-configurable-panels)

Each panel is optional, and you can even create your own.

- `RequestPanel` - Tracks all incoming web and console request data:
    - URL Information including the route and params.
    - PHP SuperGlobals `$_GET`, `$_POST`, `$_SERVER`, `$_FILES` and `$_COOKIES`.
    - Headers from the Request and Response.
- `AssetPanel` - Asset Bundles loaded for the request.
- `ConfigPanel` - Yii and PHP configuration that was used for the request.
- `DbPanel` - SQL queries.
- `ErrorPanel` - Record all PHP exceptions and errors in the background. Once logged you can configure a cron task to email the errors to a developer so issues can be fixed before they are even reported by a user. [more info](https://hafizhassan.github.io/yii2-audit/docs/error-panel/)
- `JavascriptPanel` - Automatically log JavaScript errors. Errors and warning are logged automatically by including `JSLoggingAsset` asset bundle. The javascript component also provides methods to manually add logging entries. [more info](https://hafizhassan.github.io/yii2-audit/docs/javascript-panel/)
- `LogPanel` - Yii logs.
- `MailPanel` - Emails that were sent during the request. [more info](https://hafizhassan.github.io/yii2-audit/docs/mail-panel/)
- `ProfilingPanel` - Application profiling information.
- `TrailPanel` - Database changes that were made during the request using the `AuditTrailBehavior`. [more info](https://hafizhassan.github.io/yii2-audit/docs/trail-panel/)
- `ExtraDataPanel` - Extra data that you want to store. [more info](https://hafizhassan.github.io/yii2-audit/docs/extra-data-panel/)
- `CurlPanel` - Track your applications cURL requests (including replies, log and headers) [more info](https://hafizhassan.github.io/yii2-audit/docs/curl-panel/)
- `YourOwnPanel` - Create your own panel to capture any data you want. [more info](https://hafizhassan.github.io/yii2-audit/docs/custom-views-panel/)

Documentation
-------------

[](#documentation)

Getting started? Try the [Installation Guide](https://hafizhassan.github.io/yii2-audit/docs/installation/). You will find further information in the [Documentation](https://hafizhassan.github.io/yii2-audit/docs/).

For changes since the last version see the [Changelog](https://github.com/hafizhassan/yii2-audit/blob/master/CHANGELOG.md).

Screenshots
-----------

[](#screenshots)

### Dashboard

[](#dashboard)

[![Dashboard](https://cloud.githubusercontent.com/assets/51875/8369827/b70355ee-1bfe-11e5-9748-dd864f0500de.png)](https://cloud.githubusercontent.com/assets/51875/8369827/b70355ee-1bfe-11e5-9748-dd864f0500de.png)

### Entry View

[](#entry-view)

[![Audit Entry View](https://cloud.githubusercontent.com/assets/51875/8395061/3b004aca-1d97-11e5-8b71-6787c662ea3e.png)](https://cloud.githubusercontent.com/assets/51875/8395061/3b004aca-1d97-11e5-8b71-6787c662ea3e.png)

### More Screenshots

[](#more-screenshots)

More images are available from the [Screenshots](https://hafizhassan.github.io/yii2-audit/screenshots/) page.

Contributing
------------

[](#contributing)

Contributions are welcome. Please refer to the [contributing guidelines](https://github.com/hafizhassan/yii2-audit/blob/master/CONTRIBUTING.md).

Thanks to [everyone who has contributed](https://github.com/hafizhassan/yii2-audit/blob/master/CREDITS.md).

Project Resources
-----------------

[](#project-resources)

- [Project Homepage](https://hafizhassan.github.io/yii2-audit/)
- [Live Demo](https://yii2-audit.herokuapp.com/)
- [GitHub Project](https://github.com/hafizhassan/yii2-audit)
- [Yii2 Extension](http://www.yiiframework.com/extension/yii2-audit)
- [Packagist Package](https://packagist.org/packages/hafizhassan/yii2-audit)
- [Travis CI Testing](https://travis-ci.org/hafizhassan/yii2-audit)
- [Scrutinizer CI Code Quality](https://scrutinizer-ci.com/g/hafizhassan/yii2-audit)

License
-------

[](#license)

BSD-3 - Please refer to the [license](https://github.com/hafizhassan/yii2-audit/blob/master/LICENSE.md). [![Analytics](https://camo.githubusercontent.com/8685be34b7955eee49308d6a51134da29937aa968c962844d8dff6f22272ba67/68747470733a2f2f67612d626561636f6e2e61707073706f742e636f6d2f55412d36353130343333342d332f796969322d61756469742f524541444d452e6d643f706978656c)](https://camo.githubusercontent.com/8685be34b7955eee49308d6a51134da29937aa968c962844d8dff6f22272ba67/68747470733a2f2f67612d626561636f6e2e61707073706f742e636f6d2f55412d36353130343333342d332f796969322d61756469742f524541444d452e6d643f706978656c)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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://www.gravatar.com/avatar/fb935334a21b5ecfea7689dccc6b5db2c4074629d36b4cd8703e40893e9da7e2?d=identicon)[hafizhassan](/maintainers/hafizhassan)

### Embed Badge

![Health badge](/badges/hafizhassan-yii2-audit-trail-oracle/health.svg)

```
[![Health](https://phpackages.com/badges/hafizhassan-yii2-audit-trail-oracle/health.svg)](https://phpackages.com/packages/hafizhassan-yii2-audit-trail-oracle)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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