defstudio / laravel-clog-detector
A slow response time detector for Laravel
Installs: 5 446
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
- illuminate/support: ^8.0|^9.0|^10.0
- spatie/laravel-package-tools: ^1.4.3
Requires (Dev)
- ergebnis/phpstan-rules: ^0.15.3
- friendsofphp/php-cs-fixer: ^3.1
- nunomaduro/collision: ^5.3|^6.0|^7.0
- orchestra/testbench: ^6.15|^7.0|^8.0
- pestphp/pest: ^1.18
- pestphp/pest-plugin-laravel: ^1.1
- pestphp/pest-plugin-mock: ^1.0
- phpstan/phpstan: ^0.12.99
- phpstan/phpstan-strict-rules: ^0.12.11
- spatie/laravel-ray: ^1.23
- spatie/pest-plugin-test-time: ^1.0
- thecodingmachine/phpstan-strict-rules: ^0.12.1
README
A slow responses detector for Laravel.
Installation
You can install the package via composer:
composer require defstudio/laravel-clog-detector
You can publish the config file with:
php artisan vendor:publish --tag="laravel-clog-detector-config"
This is the contents of the published config file:
return [ 'slow_responses' => [ /* * Enables slow responses reporting */ 'report' => env('SLOW_RESPONSES_REPORT', false), /* * Max http request handling time expressed in seconds. */ 'threshold' => env('SLOW_RESPONSES_MAX_SECS', 5), /* * Route names that will not report a long execution time. */ 'ignored_routes' => [ ], /* * Urls that will not report a long execution time. */ 'ignored_urls' => [ ], /* * The middleware to be used to check response times. * it must implement DefStudio\ClogDetector\Contracts\MeasureHttpResponseTime */ 'middleware' => MeasureHttpResponseTime::class, ], ];
Usage
[TODO]
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.