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

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

luoyangpeng/action-log
======================

A laravel package of ActionLog

1.1(9y ago)579.2k↓41.4%14[2 issues](https://github.com/luoyangpeng/action-log/issues)MITPHPPHP &gt;=5.4.0

Since Jul 8Pushed 8y ago3 watchersCompare

[ Source](https://github.com/luoyangpeng/action-log)[ Packagist](https://packagist.org/packages/luoyangpeng/action-log)[ RSS](/packages/luoyangpeng-action-log/feed)WikiDiscussions master Synced 1mo ago

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

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

[](#action-log)

Laravel 5 操作日志自动记录

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

[](#installation)

The ActionLog Service Provider can be installed via [Composer](http://getcomposer.org) by requiring the `luoyangpeng/action-log` package and setting the `minimum-stability` to `dev` (required for Laravel 5) in your project's `composer.json`.

```
{
    "require": {

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

}
```

or

Require this package with composer:

```
composer require luoyangpeng/action-log

```

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

Usage
-----

[](#usage)

To use the ActionLog Service Provider, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this.

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

```
    'providers' => [
        // ...
        'luoyangpeng\ActionLog\ActionLogServiceProvider',
    ]
```

for Laravel 5.1+

```
    'providers' => [
        // ...
        luoyangpeng\ActionLog\ActionLogServiceProvider::class,
    ]
```

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

```
    'aliases' => [
        // ...
        'ActionLog' => 'luoyangpeng\ActionLog\Facades\ActionLogFacade',
    ]
```

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\Users',
	];
```

Last Step
---------

[](#last-step)

run: `$ php artisan migrate`

Demo
----

[](#demo)

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

```
update

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

add

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

delete

Users:destroy(1);
```

主动记录操作日志

```
use ActionLog

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

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3602d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/066bba05684f9fe50eb4fd8a47ffe057b154ad1bb884ba944c747c2bfea66c7f?d=identicon)[luoyangpeng](/maintainers/luoyangpeng)

---

Top Contributors

[![luoyangpeng](https://avatars.githubusercontent.com/u/12150530?v=4)](https://github.com/luoyangpeng "luoyangpeng (11 commits)")

---

Tags

laravelactionlog

### Embed Badge

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

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

###  Alternatives

[bilfeldt/laravel-request-logger

Log Laravel application request and responses for debugging or statistics

122163.3k2](/packages/bilfeldt-laravel-request-logger)[treblle/security-headers

A collection of HTTP middleware classes to improve the security headers in your Laravel application.

9534.3k](/packages/treblle-security-headers)[insenseanalytics/nova-server-monitor

A Laravel Nova tool for Spatie's Server Monitor library.

6546.9k](/packages/insenseanalytics-nova-server-monitor)[moesif/moesif-laravel

Moesif Collection/Data Ingestion Middleware for Laravel

1065.8k](/packages/moesif-moesif-laravel)[melihovv/laravel-log-viewer

A Laravel log viewer

1231.5k1](/packages/melihovv-laravel-log-viewer)

PHPackages © 2026

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