minvws/audit-logger-bundle
Composer 安装命令:
composer require minvws/audit-logger-bundle
包简介
Generic audit logger bundle for symfony
README 文档
README
This package extends the minvws/audit-logger package and provides a generic logging service for Symfony applications for the RDO platform. It allows to easily log events to the database, syslog or other destinations.
Prerequisites
- PHP >= 8.3
- Composer
- Symfony >= 6.3
Installation
Composer
Install the package through composer:
$ composer require minvws/audit-logger-bundle
Configuration
The package can be configured in the audit_logger.yaml file. There is a generic configuration for encryption:
public_key: # The public key to use for encryption private_key: # The private key to use for encryption
There are currently four logging destinations available: psr, database, file and rabbitmq:
PSR-3 Logger (psr_logger)
Generic PSR-3 logger that can be used to log to any PSR-3 compatible logger.
Possible configuration options:
| Option | Value type | Default | Description |
|---|---|---|---|
| enabled | boolean | true | Enable logging |
| encrypted | boolean | true | Encrypt the log data |
| log_pii | boolean | true | Log Personal Identifiable Information (PII) |
Database Logger (doctrine_logger)
Log data to the database.
Possible configuration options:
| Option | Value type | Default | Description |
|---|---|---|---|
| enabled | boolean | true | Enable logging |
| encrypted | boolean | true | Encrypt the log data |
| log_pii | boolean | true | Log Personal Identifiable Information (PII) |
File Logger (file_logger)
Log data to the database.
Possible configuration options:
| Option | Value type | Default | Description |
|---|---|---|---|
| enabled | boolean | true | Enable logging |
| path | string | '%kernel.logs_dir%/audit.log' | Path to where log file is written |
| encrypted | boolean | true | Encrypt the log data |
| log_pii | boolean | true | Log Personal Identifiable Information (PII) |
RabbitMQ Logger (rabbitmg_logger)
Log data to RabbitMQ.
Possible configuration options:
| Option | Value type | Default | Description |
|---|---|---|---|
| enabled | boolean | true | Enable logging |
| additional_events | array | [] | Register additional event to publish |
| routing_key | string | '' | Optional routing key |
| log_pii | boolean | true | Log Personal Identifiable Information (PII) |
More information
See minvws/audit-logger for more information.
Creating custom events
Creating a custom event is easy. You can create a new class that extends the MinVWS\AuditLogger\Events\Logging\GeneralLogEvent class.
use MinVWS\AuditLogger\Events\Logging\GeneralLogEvent; class MyCustomEvent extends GeneralLogEvent { public const EVENT_CODE = '991414'; public const EVENT_KEY = 'my_custom_event'; }
Contributing
If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on the GitHub repository of this package.
License
This package is open-source and released under the European Union Public License version 1.2. You are free to use, modify and distribute the package in accordance with the terms of the license.
Part of iCore
This package is part of the iCore project.
minvws/audit-logger-bundle 适用场景与选型建议
minvws/audit-logger-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 43.62k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 09 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「logging」 「symfony」 「Audit」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 minvws/audit-logger-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 minvws/audit-logger-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 minvws/audit-logger-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Log adding/updating/deleting of elements
Doctrine ORM provider for the auditor audit-log library.
The bundle for easy using json-rpc api on your project
A Zend Framework module that sets up Monolog for logging in applications.
PB Web Media Audit Bundle for Symfony
Asynchronous Sentry for Symfony - Fire and forget
统计信息
- 总下载量: 43.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: EUPL-1.2
- 更新时间: 2025-09-01