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

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

ritey/laravel-slow-queries
==========================

Collects slow queries via DB::listen, batches them every 10 minutes, emails and rotates.

1.0.0(7mo ago)07MITPHPPHP &gt;=7.2.0

Since Oct 2Pushed 7mo agoCompare

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

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

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

[](#laravel-slow-queries)

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

[](#installation)

Install the package via Composer:

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

Usage
-----

[](#usage)

1. **Publish the configuration (optional):**

    ```
    php artisan vendor:publish --provider="Ritey\\SlowQueries\\SlowQueriesServiceProvider"
    ```
2. **Configure thresholds and email settings:**

    Edit `config/slow-queries.php` as needed.
3. **Send the slow queries report via email:**

    ```
    php artisan slow-queries:email-report
    ```

### Code Structure (for contributors)

[](#code-structure-for-contributors)

- `src/Console/EmailSlowQueriesReport.php`: Command to email slow query reports.
- `src/Mail/SlowQueriesReport.php`: Mailable for the report.
- `src/Support/Paths.php`: Helper for file paths.
- `resources/views/emails/slow_queries_report_plain.blade.php`: Email template.
- `config/slow-queries.php`: Configuration file.

### Testing

[](#testing)

- Add your tests and run them using PHPUnit: ```
    ./vendor/bin/phpunit
    ```

### Contributing

[](#contributing)

- Fork the repository and create a feature branch.
- Submit a pull request with a clear description of your changes.

### Coding Standards

[](#coding-standards)

- Follow PSR-12 coding style.
- Run `composer lint` if a linter is configured.

### License

[](#license)

See [LICENSE](LICENSE) for details.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance64

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

222d ago

### Community

Maintainers

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

---

Top Contributors

[![ritey](https://avatars.githubusercontent.com/u/588686?v=4)](https://github.com/ritey "ritey (6 commits)")

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)

PHPackages © 2026

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