定制 mtt-pimcore-plugin/audit-plugin 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mtt-pimcore-plugin/audit-plugin

Composer 安装命令:

composer require mtt-pimcore-plugin/audit-plugin

包简介

Pimcore Audit Logging Plugin with Symfony Messenger Queue support.

README 文档

README

The MTT (Minds Task Technologies) Pimcore Audit Bundle provides audit logging functionality for Pimcore using Symfony Messenger.
All actions are logged into a custom database table and processed asynchronously via a Doctrine-backed queue.

🚀 Installation Steps

✅ Step 1: Require the Bundle

Run the following in your Pimcore project root:

    composer require mtt-pimcore-plugin/audit-plugin

✅ Step 2: Enable the Bundle (If Not Auto-Enabled)

Check and register the bundle manually in config/bundles.php if needed:

return [
    // ...
    PimcoreAuditBundle\PimcoreAuditBundle::class => ['all' => true],
];

✅ Step 3: Install the Bundle

Run the Pimcore installer to set up the required audit_log table:

bin/console pimcore:bundle:install PimcoreAuditBundle

✅ Step 4: Start the Messenger Worker

The bundle automatically registers the Symfony Messenger transport and routing.
To process queued audit log messages, run:

bin/console messenger:consume audit_log

⚠️ In production, supervise this process using Supervisor, systemd, Docker, etc.

✅ Step 5: Uninstall the Bundle (Optional)

To drop the audit log table and clean up:

bin/console pimcore:bundle:uninstall PimcoreAuditBundle

✅ Step 6: Start the Messenger Worker To process audit log messages asynchronously, you need to run the Symfony Messenger worker for the audit_log transport.

▶️ Run Locally (Development): bash

   bin/console messenger:consume audit_log

Keep this process running in a separate terminal tab while working locally.

⚙️ Run in Production (Supervised): In a production environment, you should supervise the worker process to ensure it restarts automatically if it fails.

📦 Features

The MTT (Minds Task Technologies) Pimcore Audit Bundle provides robust audit logging capabilities for all key Pimcore entities — Data Objects, Documents, and Assets. It integrates with the Symfony Messenger component to ensure that logs are processed asynchronously, improving application performance and reliability.

🗂️ Entity Change Tracking The bundle tracks create, update, and delete actions for the following Pimcore elements:

Data Objects: Logs whenever an object is saved or deleted, including full metadata and payload data.

Documents: Tracks changes to Pimcore documents, capturing save and delete events.

Assets: Monitors save and delete operations on uploaded files and media. Each of these actions is recorded with detailed information, ensuring traceability across the system.

📨 Asynchronous Processing via Symfony Messenger All audit logs are queued and processed asynchronously using Symfony Messenger.

This ensures that logging does not block or slow down Pimcore operations like saving an object or uploading an asset.

The bundle automatically configures and uses the audit_log transport channel — no manual Messenger config required.

🛢️ Custom Database Table Audit logs are stored in a dedicated table: audit_log. Each log entry includes rich context such as:

Entity Type (Object, Document, Asset)

Action performed (save/delete)

Object ID

Class Name (for Data Objects)

Request payloads (captured JSON of changes)

Username of the logged-in user who triggered the event

Timestamp of the event This structure ensures every critical change in your Pimcore system is logged and easily queryable.

👤 User and Context Awareness Automatically captures the Pimcore user who performed the action.

Captures relevant request context, such as HTTP request payloads and IP addresses (if available). This makes it easy to audit user activity, trace changes, and identify accountability within your application.

⚙️ Pimcore-First Integration Seamless integration with Pimcore’s bundle system:

bin/console pimcore:bundle:install PimcoreAuditBundle creates necessary database structures.

bin/console pimcore:bundle:uninstall PimcoreAuditBundle removes them cleanly.

No extra steps needed to configure queues or services in your Symfony project.

🚀 Production-Ready Designed to work well in production environments with high throughput.

Messenger workers can be supervised using Supervisor, systemd, or run in Docker containers.

Logs are processed in a background worker, keeping the UI and admin actions fast.

📜 License

MIT License

👨‍💻 Maintainer

MTT Technologies (Minds Task Technologies)
For issues and contributions, please submit a pull request or open an issue on GitHub.

mtt-pimcore-plugin/audit-plugin 适用场景与选型建议

mtt-pimcore-plugin/audit-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 07 月 21 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「logging」 「queue」 「symfony」 「Audit」 「Messenger」 「pimcore」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 mtt-pimcore-plugin/audit-plugin 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 mtt-pimcore-plugin/audit-plugin 我们能提供哪些服务?
定制开发 / 二次开发

基于 mtt-pimcore-plugin/audit-plugin 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 10
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-21