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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
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 不要寫入,本套件提供了兩種排除記錄的方式

  1. 排除指定 http method,您可以在 config 中設置 ,表示要記錄除了這些方法之外的請求, 可設置的方法有 ,例如設置了 ,系統將忽略記錄所有 get 請求
  2. 排除指定 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.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package littlebookboy/laravel-request-recorder contains the following files

Loading the files please wait ....