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.3.0(2w ago)14.5kMITPHPPHP ^8.2CI passing

Since Apr 20Pushed 2w 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 today

READMEChangelogDependencies (12)Versions (5)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

51

—

FairBetter than 95% of packages

Maintenance96

Actively maintained with recent releases

Popularity22

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

Total

4

Last Release

20d 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 (25 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

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M203](/packages/laravel-ai)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M167](/packages/spatie-laravel-health)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.9k1](/packages/mike-bronner-laravel-model-caching)[api-platform/laravel

API Platform support for Laravel

58171.8k14](/packages/api-platform-laravel)

PHPackages © 2026

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