PHPackages                             oh86/sqllog - 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. oh86/sqllog

ActiveLibrary

oh86/sqllog
===========

log for sql in laravel framework

v1.2(4y ago)0442MITPHP

Since Dec 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/OneHundred86/sqllog4laravel)[ Packagist](https://packagist.org/packages/oh86/sqllog)[ RSS](/packages/oh86-sqllog/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (4)Used By (0)

##### 一、功能说明

[](#一功能说明)

用于laravel框架，记录数据库执行语句的执行信息，包括执行时间和sql语句等。

日志记录驱动使用的是laravel配置的日志驱动。

##### 二、安装

[](#二安装)

```
composer require "oh86/sqllog"
```

##### 三、配置

[](#三配置)

1. 添加下面一行到 `config/app.php` 中 `providers` 部分：

    ```
    Oh86\Sqllog\SqllogServiceProvider::class,

    ```
2. 发布配置文件与资源

    ```
    php artisan vendor:publish --provider='Oh86\Sqllog\SqllogServiceProvider'

    ```
3. 配置.env

    ```
    SQLLOG_SLOW=true              # 是否开启sql慢日志记录
    SQLLOG_SLOW_TIME=0            # sql慢执行时间，毫秒
    SQLLOG_DEBUG_BACKTRACE=true   # 是否打印调用栈信息

    ```

###  Health Score

26

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

3

Last Release

1553d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c3f893211000acbd1a600e2159a778865e4f7e54661239721c9fb5c240d7626b?d=identicon)[oh86](/maintainers/oh86)

---

Top Contributors

[![OneHundred86](https://avatars.githubusercontent.com/u/22148561?v=4)](https://github.com/OneHundred86 "OneHundred86 (3 commits)")

---

Tags

phplaravelsql logslowlog

### Embed Badge

![Health badge](/badges/oh86-sqllog/health.svg)

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

###  Alternatives

[tomatophp/filament-users

Manage your users with a highly customizable user resource for FilamentPHP with integration of filament-shield and filament-impersonate

8995.4k7](/packages/tomatophp-filament-users)[octw/aramex

A Library to integrate with Aramex APIs

2924.7k](/packages/octw-aramex)[wxm/pdd-sdk

拼多多 SDK 封装, 调用简单、语义化增强。支持 Laravel/Lumen。

154.7k](/packages/wxm-pdd-sdk)

PHPackages © 2026

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