2017 © Pedro Peláez
 

yii2-extension yii2-audit

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

image

bedezign/yii2-audit

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

  • Monday, July 2, 2018
  • by Blizz
  • Repository
  • 22 Watchers
  • 139 Stars
  • 33,019 Installations
  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 61 Forks
  • 25 Open issues
  • 26 Versions
  • 9 % Grown

The README.md

Yii2 Audit

Join Chat Latest Version Software License Build Status HHVM Coverage Status Quality Score Total Downloads Yii2 Framework, (*1)

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

New stewardship from March 2024 on

We (@schmunk42, @eluhr) have taken stewardship of this project. Thank you @Blizzke for adding us to the GitHub maintainer list. Since we are still using this extension extensively, we are focussing on backward-compatibility and improvements., (*3)

Upgrading

yii2-audit 1.2.x

Existing projects with non-namespace migrations need to include @bedezign/yii2/audit/migrations/1.1.x in `migrationPath and skip namespaced migrations. (Issue #271), (*4)

PHP7.2 & Yii 2.0.13 or later

From PHP 7.2 on Object became a reserved keyword. Since enough time went by, we decided to assume everyone is on 7.2 and Yii 2.0.13 by now we won't be keeping 1.0.*-branch (pre PHP 7.2) up to date anymore., (*5)

Please use version 1.1.* or later., (*6)

Features

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

Tracks minimal data in the base entry:, (*7)

  • 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

Each panel is optional, and you can even create your own., (*8)

  • 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
  • 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
  • LogPanel - Yii logs.
  • MailPanel - Emails that were sent during the request. more info
  • ProfilingPanel - Application profiling information.
  • TrailPanel - Database changes that were made during the request using the AuditTrailBehavior. more info
  • ExtraDataPanel - Extra data that you want to store. more info
  • CurlPanel - Track your applications cURL requests (including replies, log and headers) more info
  • YourOwnPanel - Create your own panel to capture any data you want. more info

Documentation

Getting started? Try the Installation Guide. You will find further information in the Documentation., (*9)

For changes since the last version see the Changelog., (*10)

Screenshots

Dashboard

Dashboard, (*11)

Entry View

Audit Entry View, (*12)

More Screenshots

More images are available from the Screenshots page., (*13)

Contributing

Contributions are welcome. Please refer to the contributing guidelines., (*14)

Thanks to everyone who has contributed., (*15)

Project Resources

License

BSD-3 - Please refer to the license. Analytics, (*16)

The Versions

02/07 2018

dev-master

9999999-dev

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

  Sources   Download

MIT BSD 3-Clause

The Requires

 

logging yii2 audit trail

04/02 2018

1.0.x-dev

1.0.9999999.9999999-dev

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

  Sources   Download

MIT

The Requires

 

logging yii2 audit trail

04/02 2018

1.0.14

1.0.14.0

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

  Sources   Download

MIT

The Requires

 

logging yii2 audit trail

04/02 2018

1.1.1

1.1.1.0

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

  Sources   Download

MIT

The Requires

 

logging yii2 audit trail

20/01 2018

1.1.0

1.1.0.0

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

  Sources   Download

MIT

The Requires

 

logging yii2 audit trail

20/01 2018

1.0.13

1.0.13.0

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

  Sources   Download

MIT

The Requires

 

logging yii2 audit trail

27/08 2017

1.0.12

1.0.12.0

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

  Sources   Download

BSD 3-Clause

The Requires

 

logging yii2 audit trail

15/04 2017

1.0.11

1.0.11.0

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

  Sources   Download

BSD 3-Clause

The Requires

 

logging yii2 audit trail

26/03 2017

1.0.10

1.0.10.0

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

  Sources   Download

BSD 3-Clause

The Requires

 

logging yii2 audit trail

25/03 2017

1.0.9

1.0.9.0

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

  Sources   Download

BSD 3-Clause

The Requires

 

logging yii2 audit trail

24/11 2016

1.0.8

1.0.8.0

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

  Sources   Download

BSD 3-Clause

The Requires

 

logging yii2 audit trail

28/07 2016

1.0.7

1.0.7.0

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

  Sources   Download

BSD 3-Clause

The Requires

 

logging yii2 audit trail

12/03 2016

1.0.6

1.0.6.0

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

  Sources   Download

BSD 3-Clause

The Requires

 

logging yii2 audit trail

28/10 2015

1.0.5

1.0.5.0

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

  Sources   Download

BSD 3-Clause

The Requires

 

logging yii2 audit trail

11/08 2015

1.0.4

1.0.4.0

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

  Sources   Download

BSD 3-Clause

The Requires

 

logging yii2 audit trail

29/07 2015

1.0.3

1.0.3.0

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

  Sources   Download

BSD 3-Clause

The Requires

 

logging yii2 audit trail

14/07 2015
12/06 2015

0.1.6

0.1.6.0

Auditing component for Yii2

  Sources   Download

BSD 3-Clause

The Requires

 

yii2 module audit trail

12/06 2015

0.1.5

0.1.5.0

Auditing component for Yii2

  Sources   Download

BSD 3-Clause

The Requires

 

yii2 module audit trail

10/06 2015

0.1.4

0.1.4.0

Auditing component for Yii2

  Sources   Download

BSD 3-Clause

The Requires

 

yii2 module audit trail

02/06 2015

0.1.3

0.1.3.0

Auditing component for Yii2

  Sources   Download

BSD 3-Clause

The Requires

 

yii2 module audit trail

02/06 2015

0.1.2

0.1.2.0

Auditing component for Yii2

  Sources   Download

BSD 3-Clause

The Requires

 

yii2 module audit trail

29/05 2015

0.1.1

0.1.1.0

Auditing component for Yii2

  Sources   Download

BSD 3-Clause

The Requires

 

yii2 module audit trail

22/05 2015

0.1

0.1.0.0

Auditing component for Yii2

  Sources   Download

BSD 3-Clause

The Requires

 

yii2 module audit trail