PHPackages                             majikang/action-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. majikang/action-log

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

majikang/action-log
===================

A laravel package of ActionLog，记录用户操作和api请求

1.1(9y ago)7732MITPHPPHP &gt;=5.4.0

Since Sep 30Pushed 9y ago2 watchersCompare

[ Source](https://github.com/mjk0621/action-log)[ Packagist](https://packagist.org/packages/majikang/action-log)[ RSS](/packages/majikang-action-log/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

action-log
==========

[](#action-log)

Laravel 5 操作日志记录

Installation
------------

[](#installation)

```
{
    "require": {

        "majikang/action-log": "~1.0"
    },

}
```

or

Require this package with composer:

```
composer require majikang/action-log

```

Update your packages with `composer update` or install with `composer install`.

Usage
-----

[](#usage)

Find the `providers` key in `config/app.php` and register the ActionLog Service Provider.

for Laravel 5.1+

```
    'providers' => [
        majikang\ActionLog\ActionLogServiceProvider::class,
    ]
```

Find the `aliases` key in `config/app.php`.

for Laravel 5.1+

```
    'aliases' => [
        'ActionLog' => luoyangpeng\ActionLog\Facades\ActionLogFacade::class,
    ]
```

Configuration
-------------

[](#configuration)

To use your own settings, publish config.

`$ php artisan vendor:publish`

`config/actionlog.php`

```
//填写要记录的日志的模型名称
	return [
		'\App\Models\User',
	];
```

Last Step
---------

[](#last-step)

`$ php artisan migrate`

Demo
----

[](#demo)

自动记录操作日志，数据库操作需按如下:

```
update

$users = Users::find(1);
$users->name = "admin";
$users->save();

add

$users = new Users();
$users->name = "admin";
$users->save()

delete

Users:destroy(1);
```

主动记录操作日志

```
use ActionLog;

ActionLog::createActionLog($type,$content);
ActionLog::ApiLog($type,$content,$result);
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% 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.

###  Release Activity

Cadence

Every ~8 days

Total

3

Last Release

3588d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/142912?v=4)[matt](/maintainers/mjk)[@mjk](https://github.com/mjk)

---

Top Contributors

[![conrad621](https://avatars.githubusercontent.com/u/7512052?v=4)](https://github.com/conrad621 "conrad621 (8 commits)")[![Macroyep](https://avatars.githubusercontent.com/u/6713684?v=4)](https://github.com/Macroyep "Macroyep (1 commits)")

### Embed Badge

![Health badge](/badges/majikang-action-log/health.svg)

```
[![Health](https://phpackages.com/badges/majikang-action-log/health.svg)](https://phpackages.com/packages/majikang-action-log)
```

###  Alternatives

[psr/log

Common interface for logging libraries

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

API for OpenTelemetry PHP.

2044.7M345](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2430.8M427](/packages/open-telemetry-sdk)

PHPackages © 2026

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