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

ActiveLibrary

lld/action-log
==============

A laravel package of ActionLog

09PHP

Since Dec 12Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)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": "dev-master"
    },

}
```

or

Require this package with composer:

```
composer require luoyangpeng/action-log dev-master

```

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

In Windows, you'll need to include the GD2 DLL `php_gd2.dll` as an extension in php.ini.

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

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

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://www.gravatar.com/avatar/366fee38463e73edfb589ae7d5bce0eee71c3a00dd2d264c00b264d3d3140e07?d=identicon)[SuperDraven](/maintainers/SuperDraven)

---

Top Contributors

[![SuperDraven](https://avatars.githubusercontent.com/u/17566187?v=4)](https://github.com/SuperDraven "SuperDraven (8 commits)")

### Embed Badge

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

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

PHPackages © 2026

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