PHPackages                             onmpw/jiyilog - 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. onmpw/jiyilog

ActiveLibrary

onmpw/jiyilog
=============

Record your api access log.

v1.2.1(7y ago)028PHP

Since Dec 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/onmpw/jiyilog)[ Packagist](https://packagist.org/packages/onmpw/jiyilog)[ Docs](https://github.com/onmpw/jiyilog.git)[ RSS](/packages/onmpw-jiyilog/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (1)Versions (5)Used By (0)

jiyilog
=======

[](#jiyilog)

记录项目中 api 访问日志，并可以通过web进行展示. 这个扩展是针对`laravel`使用的。

### 安装

[](#安装)

使用`composer`进行安装

```
composer require onmpw/jiyilog

```

然后在 config/app.php 配置项`providers`中添加 `Onmpw\JiyiLog\JiyiLogServiceProvider`

```
return [
'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        Illuminate\Auth\AuthServiceProvider::class,
        Illuminate\Broadcasting\BroadcastServiceProvider::class,
        Illuminate\Bus\BusServiceProvider::class,
        Illuminate\Cache\CacheServiceProvider::class,
        Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
        Illuminate\Cookie\CookieServiceProvider::class,
        Illuminate\Database\DatabaseServiceProvider::class,
        Illuminate\Encryption\EncryptionServiceProvider::class,
        Illuminate\Filesystem\FilesystemServiceProvider::class,
        Illuminate\Foundation\Providers\FoundationServiceProvider::class,
        Illuminate\Hashing\HashServiceProvider::class,
        Illuminate\Mail\MailServiceProvider::class,
        Illuminate\Notifications\NotificationServiceProvider::class,
        Illuminate\Pagination\PaginationServiceProvider::class,
        Illuminate\Pipeline\PipelineServiceProvider::class,
        Illuminate\Queue\QueueServiceProvider::class,
        Illuminate\Redis\RedisServiceProvider::class,
        Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
        Illuminate\Session\SessionServiceProvider::class,
        Illuminate\Translation\TranslationServiceProvider::class,
        Illuminate\Validation\ValidationServiceProvider::class,
        Illuminate\View\ViewServiceProvider::class,

        /*
         * Package Service Providers...
         */
        Onmpw\JiyiLog\JiyiLogServiceProvider::class,

        /*
         * Application Service Providers...
         */
        App\Providers\AppServiceProvider::class,
        App\Providers\AuthServiceProvider::class,
        // App\Providers\BroadcastServiceProvider::class,
        App\Providers\EventServiceProvider::class,
        App\Providers\RouteServiceProvider::class
    ]
];
```

### 使用

[](#使用)

使用也比较简单

```
$api = "Your Api Name";
$parameters = []; // 访问参数

$log = new Onmpw\JiyiLog\JLog();

$log->log($api,$parameters);
```

默认情况下，日志是记录在了 Redis中，所以要在项目中配置Redis的访问。 同时，该扩展提供了将Redis中的数据备份到数据库的命令

```
# php artisan Log backup
```

数据库已经在 Migrations中创建好了，可以执行Laravel相关的 migrate命令创建数据库。

对于日志的访问，该扩展提供了两个模板，可以通过内置的路由进行访问 `yourdomain/showlog` 和 `yourdomain/viewlog`

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~2 days

Total

3

Last Release

2705d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a06c3ebcdf77f32819617a274570fd5cbce0ba127790256cdcf2b0fbd76596d?d=identicon)[onmpw](/maintainers/onmpw)

---

Top Contributors

[![onmpw](https://avatars.githubusercontent.com/u/8577488?v=4)](https://github.com/onmpw "onmpw (23 commits)")

### Embed Badge

![Health badge](/badges/onmpw-jiyilog/health.svg)

```
[![Health](https://phpackages.com/badges/onmpw-jiyilog/health.svg)](https://phpackages.com/packages/onmpw-jiyilog)
```

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[teamtnt/tntsearch

A fully featured full text search engine written in PHP

3.2k3.0M28](/packages/teamtnt-tntsearch)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[pdffiller/qless-php

PHP Bindings for qless

29113.2k1](/packages/pdffiller-qless-php)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)

PHPackages © 2026

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