PHPackages                             mamitech/laravel-slow-query-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. [Database &amp; ORM](/categories/database)
4. /
5. mamitech/laravel-slow-query-log

ActiveLibrary[Database &amp; ORM](/categories/database)

mamitech/laravel-slow-query-log
===============================

Slow query logging for Laravel

v3.0(9mo ago)015.3k↓16.7%1MITPHPPHP &gt;=8.2

Since Jan 28Pushed 9mo ago4 watchersCompare

[ Source](https://github.com/mamitech/laravel-slow-query-log)[ Packagist](https://packagist.org/packages/mamitech/laravel-slow-query-log)[ RSS](/packages/mamitech-laravel-slow-query-log/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (18)Used By (0)

Todo: make it more proper
=========================

[](#todo-make-it-more-proper)

Usage
=====

[](#usage)

Publish config
--------------

[](#publish-config)

The first time you use this package, publish the configuration by typing `php artisan vendor:publish --provider=Mamitech\SlowQueryLog\ServiceProvider`

Enable it by settings environment variable `SLOW_QUERY_LOG_ENABLED` to `true`.

Set your minimum threshold of query execution to be considered slow by setting environment variable `SLOW_QUERY_MIN_THRESHOLD` to a number (in millisecond unit).

If you only want to trace certain files, set your environment variable `SLOW_QUERY_TRACE_ONLY` to some string. For example if you want to only keep the trace data of all files within `app/` folder, set `SLOW_QUERY_TRACE_ONLY` to `app/`

Run Test
========

[](#run-test)

Before running test, make sure you have installed all the dependencies by running:

```
composer install

```

Then, make sure you have `php-sqlite3` installed in your system because use sqlite to run the test.

In debian based system:

```
sudo apt install php-sqlite3

```

Now run the test using:

```
./vendor/bin/phpunit

```

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance58

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~86 days

Recently: every ~296 days

Total

16

Last Release

274d ago

Major Versions

v0.7.1 → v1.02023-04-15

v1.1 → v2.02024-10-22

v2.0 → v3.02025-08-18

PHP version history (3 changes)v0.1PHP &gt;=7.1

v1.0PHP &gt;=8.0

v2.0PHP &gt;=8.2

### Community

Maintainers

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

---

Top Contributors

[![tofasuriawan24](https://avatars.githubusercontent.com/u/136300993?v=4)](https://github.com/tofasuriawan24 "tofasuriawan24 (3 commits)")[![edchkm](https://avatars.githubusercontent.com/u/23701945?v=4)](https://github.com/edchkm "edchkm (1 commits)")[![vynhart](https://avatars.githubusercontent.com/u/3351656?v=4)](https://github.com/vynhart "vynhart (1 commits)")

### Embed Badge

![Health badge](/badges/mamitech-laravel-slow-query-log/health.svg)

```
[![Health](https://phpackages.com/badges/mamitech-laravel-slow-query-log/health.svg)](https://phpackages.com/packages/mamitech-laravel-slow-query-log)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)

PHPackages © 2026

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