{"id":15658724,"url":"https://github.com/cornernote/yii-audit-module","last_synced_at":"2025-08-14T00:19:01.953Z","repository":{"id":12657955,"uuid":"15329728","full_name":"cornernote/yii-audit-module","owner":"cornernote","description":"Track and display usage information including page requests, database field changes, php errors and yii logs.","archived":false,"fork":false,"pushed_at":"2022-07-05T02:03:06.000Z","size":1389,"stargazers_count":22,"open_issues_count":11,"forks_count":13,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-07-02T08:08:53.002Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://cornernote.github.io/yii-audit-module","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cornernote.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":"audit/AuditModule.php","citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-20T04:17:04.000Z","updated_at":"2023-09-03T01:24:34.000Z","dependencies_parsed_at":"2022-09-10T06:10:31.433Z","dependency_job_id":null,"html_url":"https://github.com/cornernote/yii-audit-module","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/cornernote/yii-audit-module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornernote%2Fyii-audit-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornernote%2Fyii-audit-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornernote%2Fyii-audit-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornernote%2Fyii-audit-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cornernote","download_url":"https://codeload.github.com/cornernote/yii-audit-module/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornernote%2Fyii-audit-module/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270338381,"owners_count":24567105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T13:13:40.160Z","updated_at":"2025-08-14T00:19:01.922Z","avatar_url":"https://github.com/cornernote.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yii Audit Module\n\nTrack and display usage information including page requests, database field changes, php errors and yii logs.\n\n\n## Features\n\n\n### Visitor Request Tracking\n\n- Track site activity including everything you need to know about the request.\n- The error handler will automatically create an AuditRequest record for each visitor hit.\n- When the application ends it will update the AuditRequest with memory and time information.\n\nTracks the following information:\n\n- Links - Requested URL, referring URL, redirecting to URL (read from the headers at the end of the application)\n- User - Visitors IP Address and logged in user's ID\n- Superglobals - (`$_GET`/`$_POST`/`$_SESSION`/`$_FILES`/`$_COOKIE`), the arrays are serialized then compressed using gzip\n- Timers - Start and end times of the application\n- Memory - Memory usage and peak memory usage\n\n\n### Model Field Tracking\n\n- Tracks the old and new values each time your model is saved.\n- Behavior can easily be attached to any model you want to track field changes.\n- Each field change is related to an AuditRequest so you can see the entire state of the visitors action.\n- Performs multiple inserts in a single query with `CDbCommandBuilder::createMultipleInsertCommand()`.\n- Provides views that can be rendered into your application to show changed fields for your model.\n\n\n### Error Tracking\n\n- Full error stack dump is saved, even in live mode.\n- Catches all errors, including fatal errors.\n- View all the collected data from the module interface.\n- Each error is related to an AuditRequest so you can see the entire state of the visitors action.\n\n\n### Log Tracking\n\n- Save logs to your database for easy real-time debugging or for checking on historical logs.\n- Each log is related to an AuditRequest so you can see the entire state of the visitors action.\n\n\n## Resources\n\n- **[Documentation](http://cornernote.github.io/yii-audit-module)**\n- **[GitHub Project](https://github.com/cornernote/yii-audit-module)**\n- **[Yii Extension](http://www.yiiframework.com/extension/yii-audit-module)**\n\n\n## Support\n\n- Does this README need improvement?  Go ahead and [suggest a change](https://github.com/cornernote/yii-audit-module/edit/master/README.md).\n- 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).\n\n\n## License\n\n[BSD-3-Clause](https://raw.github.com/cornernote/yii-audit-module/master/LICENSE), Copyright © 2013-2014 [Mr PHP](mailto:info@mrphp.com.au)\n\n\n[![Mr PHP](https://raw.github.com/cornernote/mrphp-assets/master/img/code-banner.png)](http://mrphp.com.au)\n\n[![Latest Stable Version](https://poser.pugx.org/cornernote/yii-audit-module/v/stable.png)](https://github.com/cornernote/yii-audit-module/releases/latest) [![Total Downloads](https://poser.pugx.org/cornernote/yii-audit-module/downloads.png)](https://packagist.org/packages/cornernote/yii-audit-module) [![Monthly Downloads](https://poser.pugx.org/cornernote/yii-audit-module/d/monthly.png)](https://packagist.org/packages/cornernote/yii-audit-module) [![Latest Unstable Version](https://poser.pugx.org/cornernote/yii-audit-module/v/unstable.png)](https://github.com/cornernote/yii-audit-module) [![Build Status](https://travis-ci.org/cornernote/yii-audit-module.png?branch=master)](https://travis-ci.org/cornernote/yii-audit-module) [![License](https://poser.pugx.org/cornernote/yii-audit-module/license.png)](https://raw.github.com/cornernote/yii-audit-module/master/LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcornernote%2Fyii-audit-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcornernote%2Fyii-audit-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcornernote%2Fyii-audit-module/lists"}