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

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

qylinfly/action-log
===================

A laravel package of ActionLog

2.1.0(8y ago)12852[1 PRs](https://github.com/QylinFly/action-log/pulls)MITPHPPHP &gt;=5.4.0

Since Jul 8Pushed 7y ago1 watchersCompare

[ Source](https://github.com/QylinFly/action-log)[ Packagist](https://packagist.org/packages/qylinfly/action-log)[ RSS](/packages/qylinfly-action-log/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (10)DependenciesVersions (13)Used By (0)

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

[](#action-log)

Laravel 5 The operation log is automatically recorded

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

[](#installation)

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

```
{
    "require": {

        "qylinfly/action-log": "2.0.*"
    },
    ...
}
```

or

Require this package with composer:

```
composer require qylinfly/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' => [
        // ...
        'Qylinfly\ActionLog\ActionLogServiceProvider',
    ]
```

for Laravel 5.1+

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

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

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

for Laravel 5.1+

```
    'aliases' => [
        // ...
        'ActionLog' => Qylinfly\ActionLog\Facades\ActionLogFacade::class,
    ]
```

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

[](#configuration)

You can publish the migration with:

```
php artisan vendor:publish --provider="Qylinfly\ActionLog\ActionLogServiceProvider" --tag="migrations"
```

The package assumes that your users table name is called "users". If this is not the case you should manually edit the published migration to use your custom table name.

After the migration has been published you can create the role- and permission-tables by running the migrations:

```
php artisan migrate
```

You can publish the config-file with:

```
php artisan vendor:publish --provider="Qylinfly\ActionLog\ActionLogServiceProvider" --tag="config"
```

To use your own settings, publish config. `config/actionlog.php`

```
return [
    //Middleware which records the request method
    'request_methods'=>['POST','GET'],
    //Fill in the name of the model to be logged, which can be multiple
    'models'=>['\App\User'],
    //Whether it is open
    'enable'=>true
];
```

Demo
----

[](#demo)

Automatically record the operation log, the database operation should be as follows:

```
update

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

add

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

delete

Users:destroy(1);
```

Active log operation log

- Custom record user access

```
use ActionLog

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

Middleware

- The middleware automatically records user access

```
class Kernel extends HttpKernel
{
    protected $middleware = [
       \Qylinfly\ActionLog\Middleware\UserActionLog::class
    ];
     ...
}
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 59.3% 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 ~57 days

Recently: every ~90 days

Total

12

Last Release

3017d ago

Major Versions

1.1.3 → 2.0.02017-03-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12712787?v=4)[XFENG](/maintainers/QylinFly)[@QylinFly](https://github.com/QylinFly)

---

Top Contributors

[![QylinFly](https://avatars.githubusercontent.com/u/12712787?v=4)](https://github.com/QylinFly "QylinFly (16 commits)")[![luoyangpeng](https://avatars.githubusercontent.com/u/12150530?v=4)](https://github.com/luoyangpeng "luoyangpeng (10 commits)")[![gokure](https://avatars.githubusercontent.com/u/88591?v=4)](https://github.com/gokure "gokure (1 commits)")

---

Tags

laravelactionlog

### Embed Badge

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

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

###  Alternatives

[luoyangpeng/action-log

A laravel package of ActionLog

579.7k](/packages/luoyangpeng-action-log)[insenseanalytics/nova-server-monitor

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

6551.6k](/packages/insenseanalytics-nova-server-monitor)[melihovv/laravel-log-viewer

A Laravel log viewer

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

PHPackages © 2026

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