samasend / laravel-query-diagnosis
This is a Laravel package that detects and reports unoptimized database queries by leveraging the database's EXPLAIN feature.
Requires
- php: ^8.1
- illuminate/support: ^9.0 || ^10.0
Requires (Dev)
- laravel/legacy-factories: ^1.0
- orchestra/testbench: ^7.0 || ^8.0
- phpunit/phpunit: ^7.0 || ^8.0 || ^9.0
README
This is a Laravel package that detects and reports unoptimized database queries by leveraging the database's EXPLAIN feature. This valuable tool helps developers identify performance bottlenecks, optimize database interactions, and enhance the overall efficiency of their applications. By integrating seamlessly into Laravel projects, this package serves as a crucial resource for maintaining optimal database performance and delivering smooth, responsive user experiences.
This package is heavily inspired by beyondcode/laravel-query-detector.
Installation
You can install the package via composer:
composer require samasend/laravel-query-diagnosis --dev
The package will automatically register itself.
Testing
composer test
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 security@sam.et instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.