PHPackages                             wbjson/dcat-operation-log - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. wbjson/dcat-operation-log

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

wbjson/dcat-operation-log
=========================

Dcat Admin 操作日志扩展

01PHP

Since Feb 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/DearJson/dcat-operation-log)[ Packagist](https://packagist.org/packages/wbjson/dcat-operation-log)[ RSS](/packages/wbjson-dcat-operation-log/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Dcat Admin Extension 管理员操作日志扩展
==============================

[](#dcat-admin-extension--管理员操作日志扩展)

依赖
--

[](#依赖)

- php | &gt;= 7.4.0
- dcat/laravel-admin | &gt;= ~2.0

安装
--

[](#安装)

### composer 安装

[](#composer-安装)

```
composer require Wbjson/dcat-operation-log

```

### 启用插件

[](#启用插件)

```
开发工具 -> 扩展 -> Wbjson.dcat-operation-log -> 升级 -> 启用

```

### 发布配置 operation-log.php

[](#发布配置-operation-logphp)

```
php artisan vendor:publish --provider="Wbjson\OperationLog\OperationLogServiceProvider"

```

方法使用
----

[](#方法使用)

1、添加日志菜单，路径为`auth/operation-logs`即可

2、相关配置，查看 `operation-log.php`

3、如需关闭日志的路由，`close_routes` 的值为 `true`。如需控制总后台的日志路由，可以将如下代码放入后台配置文件中（admin.php）

```
    'extensions' => [
        'dcat_operation_log' => [
            'close_routes' => true
        ]
    ]

```

4、多后台，需要配置管理员用户的映射关系，记得把模型补上

```
    'users_map' => [
        'admin_users' => 'App\Models\AdminUser',
    ]

```

安装问题
----

[](#安装问题)

1. 发布文件时可能存在权限问题，记得给足权限。可在项目根目录执行 `chmod -R 755 public/vendor`
2. 读取不到已经发布的配置，可清空一下缓存 `php artisan config:clear`
3. 升级程序的流程，与启用插件的一样

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1956464?v=4)[JSON S](/maintainers/jsons)[@jsons](https://github.com/jsons)

---

Top Contributors

[![ojasonhurst](https://avatars.githubusercontent.com/u/17826276?v=4)](https://github.com/ojasonhurst "ojasonhurst (2 commits)")

### Embed Badge

![Health badge](/badges/wbjson-dcat-operation-log/health.svg)

```
[![Health](https://phpackages.com/badges/wbjson-dcat-operation-log/health.svg)](https://phpackages.com/packages/wbjson-dcat-operation-log)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.5k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M276](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M343](/packages/open-telemetry-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
