jocoonopa/laravel-query-monitor

Laravel Query Monitor
6,579 1
Install
composer require jocoonopa/laravel-query-monitor
Latest Version:1.1.7
PHP:^7.3 || ^8.0
License:MIT
Last Updated:Nov 1, 2022
Links: GitHub  ·  Packagist
Maintainer: jocoonopa

Laravel Query Monitor

Travis Packagist Downloads Packagist Version PHP version from Travis config

Jocoonopa Laravel Query Monitor is library to monitoring Queries in real-time using Laravel Artisan Command. Basically it opens a socket listening and displays (on terminal) the queries executed in your Laravel application.

How to install

  1. Use composer to install this package
composer require --dev supliu/laravel-query-monitor
  1. Run publish command
php artisan vendor:publish --provider="Jocoonopa\LaravelQueryMonitor\ServiceProvider"

How to use

Open you terminal and execute:

php artisan laravel-query-monitor

Now just perform some action in your application that performs some interaction with the database.

Customize

By default, the query listening service will run on host 0.0.0.0 and port 8081. You can customize both the host and the port by providing the optional arguments:

php artisan laravel-query-monitor --host="192.168.0.2" --port=8082

If you change the host and port parameters, you will also need to change the configuration file config/laravel-query-monitor.php.

License

The Laravel Query Monitor is open-sourced project licensed under the MIT license.

Related Packages

supliu/laravel-query-monitor

Laravel Query Monitor

117,565 285
jguyomard/silex-capsule-eloquent

Capsule/Eloquent Service Provider for Silex 2

19,905 6
iivannov/laravel-sql-analyzer

Laravel SQL profiling and debug package

10 0
rennokki/laravel-eloquent-query-cache

Adding cache on your Laravel Eloquent queries' results is now a breeze.

4,597,349 1,119
affordablemobiles/laravel-eloquent-query-cache

Adding cache on your Laravel Eloquent queries' results is now a breeze.

19,112 0