PHPackages                             libaro/laravel-slow-queries - 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. libaro/laravel-slow-queries

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

libaro/laravel-slow-queries
===========================

Laravel Slow QueriesLaravel Slow Queries is a package that allows you to easily log slow queries in your Laravel application. This package logs queries that exceed a configurable time limit and stores them in the database, making it easy to analyze and optimize your database performance.

127[1 issues](https://github.com/libaro-io/laravel-slow-queries/issues)Blade

Since Dec 9Pushed 2y ago2 watchersCompare

[ Source](https://github.com/libaro-io/laravel-slow-queries)[ Packagist](https://packagist.org/packages/libaro/laravel-slow-queries)[ RSS](/packages/libaro-laravel-slow-queries/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

Laravel Slow Queries
====================

[](#laravel-slow-queries)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5db20962494ec3d3eff27ff643da6db471c1ddfbb55fa4fef50dca8c98594af0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c696261726f2f6c61726176656c2d736c6f772d717565726965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/libaro/laravel-slow-queries)[![GitHub Tests Action Status](https://camo.githubusercontent.com/ad1357b59be0f37e6625f9bef3509c4cc8b4c5b95f552c00ea6a8c84ac222bf3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6c696261726f2f6c61726176656c2d736c6f772d717565726965732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/libaro/laravel-slow-queries/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/f1d0b00b24e434e855b672542bf6acfbb6dde7db292ff7a11320b632c9f2ef37/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6c696261726f2f6c61726176656c2d736c6f772d717565726965732f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/libaro/laravel-slow-queries/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/bc7655ec0dd3c4f0de30d0a28008458b502fff97733883f07c680db8e7628f4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c696261726f2f6c61726176656c2d736c6f772d717565726965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/libaro/laravel-slow-queries)

Laravel Slow Queries is a package that allows you to easily log slow queries in your Laravel application. This package logs queries that exceed a configurable time limit and stores them in the database, making it easy to analyze and optimize your database performance.

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

[](#installation)

You can install the package via composer:

```
composer require libaro/laravel-slow-queries
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="slow-queries-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="slow-queries-config"
```

This is the contents of the published config file:

```
return [
];
```

You can publish the assets with:

```
php artisan vendor:publish --tag="slow-queries-assets"
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/libaro-io/.github/blob/main/CONTRIBUTING.md) for details.

Development Flow
----------------

[](#development-flow)

Please see [DEVELOPMENT FLOW](https://github.com/libaro-io/.github/blob/main/DEVELOPMENT_FLOW.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Libaro](https://github.com/libaro-io)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 96.6% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e1c94032186d05b780397bbc41c70bff8c561081df10719546a92de8dfd9498?d=identicon)[Libaro](/maintainers/Libaro)

---

Top Contributors

[![TimLibaro](https://avatars.githubusercontent.com/u/77798606?v=4)](https://github.com/TimLibaro "TimLibaro (344 commits)")[![johan-libaro](https://avatars.githubusercontent.com/u/102519307?v=4)](https://github.com/johan-libaro "johan-libaro (12 commits)")

### Embed Badge

![Health badge](/badges/libaro-laravel-slow-queries/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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