Download the PHP package littlebookboy/laravel-request-recorder without Composer
On this page you can find all versions of the php package littlebookboy/laravel-request-recorder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download littlebookboy/laravel-request-recorder
More information about littlebookboy/laravel-request-recorder
Files in littlebookboy/laravel-request-recorder
Download littlebookboy/laravel-request-recorder
More information about littlebookboy/laravel-request-recorder
Files in littlebookboy/laravel-request-recorder
Vendor littlebookboy
Package laravel-request-recorder
Short Description Help you have a easy way to record your every request and response information.
License proprietary
Homepage https://github.com/littlebookboy/laravel-request-recorder
Package laravel-request-recorder
Short Description Help you have a easy way to record your every request and response information.
License proprietary
Homepage https://github.com/littlebookboy/laravel-request-recorder
Please rate this library. Is it a good library?
Informations about the package laravel-request-recorder
Recorder
說明
記錄器部分,每一次 Client 端發送請求,通過 api route 時,將內容資訊記錄到資料庫中。 允許 Client 自訂請求與回應的 X-Correlation-ID,若自訂的 X-Correlation-ID 與資料庫衝突,則回應會設置成 409 表示衝突。 回應部分,是系統完成請求處理後,產生回應,才將此內容寫入資料庫。
安裝
註冊服務提供者
發佈遷移
建立資料表
Usage
設置 api 路由,例如請求搜尋指定 id 用戶
新增控制器
對應控制器 UserController
記錄開關,表示關閉記錄器
若要變更記錄群組可設定,設為表示請求從 api route 進來的請求都會被記錄
Except
實務上,有時需要讓系統排除某些 request 不要寫入,本套件提供了兩種排除記錄的方式
- 排除指定 http method,您可以在 config 中設置 ,表示要記錄除了這些方法之外的請求, 可設置的方法有 ,例如設置了 ,系統將忽略記錄所有 get 請求
- 排除指定 route name with http code,您可以在 config 中設置 ,將經過命名的路由設置到 ,並選擇要過濾的狀態碼,若要全部過濾,可選填 或留空
Config Example
Table
記錄資料
Column Name | Description |
---|---|
uuid | 請求識別 id (Primary Key) |
method | 請求 http 方法 |
route | 請求對應路由 |
route_params | 路由參數 (json) |
request_headers | 請求表頭 (json) |
request_params | 請求參數 (json) |
response_headers | 回應表頭 (json) |
response_contents | 回應內容 (json) |
ip | Client 來源 ip |
All versions of laravel-request-recorder with dependencies
PHP Build Version
Package Version
No informations.
The package littlebookboy/laravel-request-recorder contains the following files
Loading the files please wait ....