Download the PHP package dmeys/request-logger without Composer

On this page you can find all versions of the php package dmeys/request-logger. 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 request-logger

Log request and response

This package adds a middleware which can log incoming requests and responses. You can see the logs in view panel at https://your.domain/request-logs

Laravel Installation

You can install the package via composer:

You must publish the asset files with:

You must publish the config file and assets with:

request-logger.php

You have to execute migrations with:

This packages provides a middleware which can be added as a global middleware or as a single route.

Supported drivers

Lumen Installation

You can install the package via composer:

You must install vendor:publish plugin

You must register provider:

You must publish the config file and assets with:

This is the contents of the published config file:

request-logger.php

You must register this config file:

You must execute migrations with:

You must create storage symbolic link with:

You must register middleware:

This packages provides a middleware which can be added as a global middleware or as a single route.

Data Pruning

Without pruning, the request_logs table can accumulate records very quickly. To mitigate this, you should schedule the request-logs:clear artisan command to run daily:

Running the php artisan request-logs:clear command deletes recorded logs older than the number of days specified in the log_keep_days configuration.

To delete all logs, add the "--all" parameter php artisan request-logs:clear --all

Configuration custom fields

The Request Logger allows you to add custom fields for logging. The package provides the configureRequestLoggerCustomFields function, which must return an array containing the custom fields. Additionally, make sure to add these custom fields to the database table request_logs.

Here's an example of using configureRequestLoggerCustomFields():

These steps outline how to use the configureRequestLoggerCustomFields function to add custom fields to your logging setup.

Testing


All versions of request-logger with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0|8.2
illuminate/support Version >5.7
ext-json Version *
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 dmeys/request-logger contains the following files

Loading the files please wait ....