defstudio / laravel-clog-detector
Laravel的响应速度检测器
v1.0.0
2023-02-15 15:53 UTC
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
Laravel的慢响应检测器。
安装
您可以通过composer安装此包
composer require defstudio/laravel-clog-detector
您可以使用以下命令发布配置文件
php artisan vendor:publish --tag="laravel-clog-detector-config"
这是已发布配置文件的内容
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, ], ];
使用方法
[待办事项]
测试
composer test
变更日志
有关最近更改的更多信息,请参阅变更日志。
贡献
有关详细信息,请参阅贡献指南。
安全漏洞
请查阅我们的安全策略,了解如何报告安全漏洞。
致谢
许可
MIT许可(MIT)。有关更多信息,请参阅许可文件。