muhdfaiz/laravel-tail-db

Provide artisan command to monitor realtime database query executed from the application. Able to automatically run explain command for each of query received.

1.1.3 2021-06-26 17:39 UTC

This package is auto-updated.

Last update: 2024-05-05 17:18:41 UTC


README

tests Version Total Downloads License

An artisan command to monitor, troubleshoot and optimize SQL query using console.

Features

  • Monitor SQL query. Display Realtime SQL query executed from application in the console.

  • Optimize SQL query. Automatically run explain command and output to console.

  • Detect slow SQL query. Highlight slow SQL query according to your config.

Requirements

  • PHP: ^7.0
  • Laravel: ~5.5,~5.6,~5.7,~5.8,~6.0,~7.0,~8.0
  • Lumen

Installation

composer require muhdfaiz/laravel-tail-db

Publish Config File

php artisan vendor:publish --provider="Muhdfaiz\LaravelTailDb\TailDatabaseServiceProvider" --tag="tail-db-config"

Usage

php artisan tail:db

Documentation

For detail of installation instructions, in-depth usage, please take a look at the documentation.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Roadmap

Create desktop app to monitor the sql query.

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.