Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kk-r/laravel-request-analyzer
Package for Laravel 5.4 to analyze Request. It will log request time, all db queries, slow query and duplicate queries.
https://github.com/kk-r/laravel-request-analyzer
composer laravel laravel-request package php
Last synced: 17 days ago
JSON representation
Package for Laravel 5.4 to analyze Request. It will log request time, all db queries, slow query and duplicate queries.
- Host: GitHub
- URL: https://github.com/kk-r/laravel-request-analyzer
- Owner: kk-r
- License: mit
- Created: 2017-07-31T09:47:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-31T11:54:38.000Z (over 7 years ago)
- Last Synced: 2024-03-28T20:13:40.048Z (9 months ago)
- Topics: composer, laravel, laravel-request, package, php
- Language: PHP
- Size: 15.6 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Laravel request analyzer
Laravel package for analyze request with timing, slow query and duplicate queries. Lot of things in bucket list. Feel free to contribute.
## Installation
```
composer require kk-r/laravel-request-analyzer
```## Configuration
Add the provider to your config/app.php:
```php
// in your config/app.php add the provider to the service providers key'providers' => [
kkr\laravelRequestAnalyze\Providers\RequestAnalyzeServiceProvider::class,
]
```// You have add middleware for analyze requests individually
####Add inside app\Http\Kernal.php in Top mention
```php
use kkr\laravelRequestAnalyze\Middleware\RequestAnalyze as RequestAnalyzer;
```
####For individual route add inside $routeMiddleware and don't forget to add middleware in Route.
```php
protected $routeMiddleware => [
.....
'RequestAnalyzer' => RequestAnalyzer::class,
]
```
####OR for group level routes add inside middleware Groups
```php
protected $middlewareGroups => [
.....
RequestAnalyzer::class,
]
```
####OR for all routes add middleware globally
```php
protected $middleware => [
.....
RequestAnalyzer::class,
]
```### License
This package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)