Download the PHP package faustvik/yii2-audit-log without Composer
On this page you can find all versions of the php package faustvik/yii2-audit-log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-audit-log
Yii2 Audit Log Package
Audit logging package for Yii2 applications with framework-agnostic core.
Features
- Automatic logging - INSERT, UPDATE, DELETE operations via Behavior
- Batch logging - Atomic multi-record saves with
logBatch()— all or nothing - Events - Before/After log events for customization (including batch events)
- Query builder - Advanced filtering with AuditLogQuery
- Ready-to-use widgets - Display change history with filters
- Framework-agnostic core - Can be used with any PHP framework
- Yii2 integration - Behavior, Widgets, Migrations out of the box
Requirements
- PHP 8.2+
- Yii2 2.0.51+
Quick Start
1. Install via Composer
2. Add Behavior to Model
3. Display in View
Documentation
-
English Documentation
- Installation
- Configuration
- Usage
- Events
- Русская документация
- Установка
- Конфигурация
- Использование
- События
Structure
Example Usage
Logging with Events
Batch Logging
Log multiple operations atomically — either all records are saved or none (transaction is rolled back on failure).
Cancelling a batch via event:
Atomicity: logBatch() wraps all inserts in a single database transaction. If any insert fails, the transaction is rolled back and no records are saved. The error is then handled according to the configured AuditErrorMode (Ignore / Log / Throw).
Query Logs
License
MIT
Authors
- FaustVik
All versions of yii2-audit-log with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.2
psr/event-dispatcher Version ^1.0
psr/log Version ^3.0
yiisoft/yii2 Version ^2.0.51
psr/event-dispatcher Version ^1.0
psr/log Version ^3.0
yiisoft/yii2 Version ^2.0.51
The package faustvik/yii2-audit-log contains the following files
Loading the files please wait ...