Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/supliu/laravel-query-monitor
Simple artisan command to monitoring triggered queries
https://github.com/supliu/laravel-query-monitor
artisan-command hacktoberfest laravel laravel-package
Last synced: 7 days ago
JSON representation
Simple artisan command to monitoring triggered queries
- Host: GitHub
- URL: https://github.com/supliu/laravel-query-monitor
- Owner: supliu
- Created: 2020-04-27T18:16:23.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-20T13:25:46.000Z (9 months ago)
- Last Synced: 2025-01-19T17:05:30.074Z (14 days ago)
- Topics: artisan-command, hacktoberfest, laravel, laravel-package
- Language: PHP
- Homepage:
- Size: 123 KB
- Stars: 285
- Watchers: 10
- Forks: 39
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Laravel Query Monitor
![Packagist Downloads](https://img.shields.io/packagist/dt/supliu/laravel-query-monitor)
![Packagist Version](https://img.shields.io/packagist/v/supliu/laravel-query-monitor)Supliu 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
```2) Run publish command
```ssh
php artisan vendor:publish --provider="Supliu\LaravelQueryMonitor\ServiceProvider"
```## How to use
Open you terminal and execute:
```ssh
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:
```ssh
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](https://opensource.org/licenses/MIT).