Download the PHP package thomasjohnkane/slow-query-notifier without Composer
On this page you can find all versions of the php package thomasjohnkane/slow-query-notifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download thomasjohnkane/slow-query-notifier
More information about thomasjohnkane/slow-query-notifier
Files in thomasjohnkane/slow-query-notifier
Package slow-query-notifier
Short Description Get notified if your Laravel app ever runs an objectively slow database call (configurable threshold)
License MIT
Homepage https://github.com/thomasjohnkane/slow-query-notifier
Informations about the package slow-query-notifier
Slow Query Notifier for Laravel
Get notified if your app ever runs a really slow database query. We set a default threshold, but you can configure it based on your needs & expectations.
Installation
You can install the package via composer:
Usage
Set an email address
Test it works (in Production)
If you are using this in production (as intendend) make sure it is working correctly:
This command will test two things:
- We can detect slow queries in your app
- We can send an email to you if a slow query runs
Configuration
In general, we setup all of the configuration for you with sensible defaults. However, you can change the default settings if you'd like. To learn why we chose these defaults, read the blog post.
Threshold
The default is 99ms. Set a different threshold
in milliseconds in your configuration:
Enable/Disable
The package is enabled by default. Set this value to false
in your .env
to bypass the listener.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Thomas Kane
- Thanks to Marcel Pociot for the original inspiration
- Thanks to Caleb Porzio for the guidance
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.