Download the PHP package quetzal-studio/request-logger without Composer

On this page you can find all versions of the php package quetzal-studio/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

Request Logger

Request logger for Laravel. Logs incoming requests (and outgoing Guzzle/HTTP client requests) with their responses to a dedicated log channel, with configurable masking for sensitive fields.

Requirements

Version
PHP 7.4 – 8.5
Laravel 6.x – 13.x

Install package

Publish config file

Using middleware

Laravel 6 – 9

Laravel 10

Laravel 11 – 13

Then attach it to routes:

Logging runs in the middleware's terminate() method, after the response has been sent to the client, so it does not add to response time.

Log channel

By default logs are written to the request channel. If that channel is not defined in config/logging.php, a daily driver writing to storage/logs/request/request.log (14 days retention) is created automatically. Change the default channel via request_logger.log.channel or per route with the middleware parameter.

Message-only logging

By default every entry includes the full request/response context. To log only the message line ({http_method} {url} {http_status}) without the request and response payloads, set the config globally:

Or per call with withoutContext():

Masking

Keys listed in the masking config are replaced before logging. A plain key is fully masked with ********:

Keys support dot notation for nested values (e.g. user.password).

Partial masking

For PII fields you need to trace in the logs (which email/phone/account a request was about), use the mask option to keep part of the value visible:

Mask only on specific URLs

The key is masked only when the request URL matches one of the patterns.

Log a custom message

The logger can also be used directly, without request/response context:

You can attach only a request, only a response, or both — whatever is set is included in the log context (with masking applied):


All versions of request-logger with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
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 quetzal-studio/request-logger contains the following files

Loading the files please wait ...