PHPackages                             lobotomised/laravel-sql-logger - 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. lobotomised/laravel-sql-logger

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

lobotomised/laravel-sql-logger
==============================

Simple way to log your SQL queries

1.2.0(9mo ago)14.4kMITPHPPHP ^8.2CI passing

Since Apr 20Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/lobotomised/laravel_sql_logger)[ Packagist](https://packagist.org/packages/lobotomised/laravel-sql-logger)[ Docs](https://github.com/lobotomised/laravel-sql-logger)[ RSS](/packages/lobotomised-laravel-sql-logger/feed)WikiDiscussions master Synced 1mo ago

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

Laravel SQL Logger
==================

[](#laravel-sql-logger)

[![Latest Version on Packagist](https://camo.githubusercontent.com/bd6a19d840a13bdead8c58397803fdfcf4b8ab3784eb813b8ab096a9550eef98/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f626f746f6d697365642f6c61726176656c2d73716c2d6c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lobotomised/laravel-sql-logger)[![GitHub Tests Action Status](https://github.com/lobotomised/laravel_sql_logger/actions/workflows/test.yml/badge.svg)](https://github.com/lobotomised/laravel_sql_logger/actions/workflows/test.yml)[![Total Downloads](https://camo.githubusercontent.com/9d24aadeb990b0ff358f78b1a80dfd0142f4d68055351135db4f26e6bbf7caa0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f626f746f6d697365642f6c61726176656c2d73716c2d6c6f676765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lobotomised/laravel-sql-logger)

This package allows you to log all your SQL queries in a log file

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

[](#installation)

You can install the package via composer

```
composer require --dev lobotomised/laravel-sql-logger
```

By default, no query is log. Logging will be enabled when `DB_DEBUG` is `true`.

Testing
-------

[](#testing)

```
composer test
```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance56

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Total

3

Last Release

294d ago

PHP version history (3 changes)1.0.0PHP ^8.0

1.1.0PHP ^8.1

1.2.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![lobotomised](https://avatars.githubusercontent.com/u/34192441?v=4)](https://github.com/lobotomised "lobotomised (24 commits)")

---

Tags

laravellaravel-sql-loggerlobotomised

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/lobotomised-laravel-sql-logger/health.svg)

```
[![Health](https://phpackages.com/badges/lobotomised-laravel-sql-logger/health.svg)](https://phpackages.com/packages/lobotomised-laravel-sql-logger)
```

###  Alternatives

[spatie/laravel-activitylog

A very simple activity logger to monitor the users of your website or application

5.8k45.4M309](/packages/spatie-laravel-activitylog)[spatie/laravel-health

Monitor the health of a Laravel application

86910.0M83](/packages/spatie-laravel-health)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[inspector-apm/inspector-laravel

Code Execution Monitoring, built for developers.

2332.0M2](/packages/inspector-apm-inspector-laravel)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[masterro/laravel-mail-viewer

Easily view in browser outgoing emails.

6392.1k](/packages/masterro-laravel-mail-viewer)

PHPackages © 2026

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