Download the PHP package bwt-team/laravel-request-logger without Composer

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

English description | Russian description

Laravel 5 Request Logger

Latest Stable Version Latest Unstable Version

This package provides quick and easy setup for the requests logging.

This package requires Laravel 5.6+

Contents

Installation

This package can be installed via composer with this command:

Set up

Laravel 5.6+ uses package auto-discovery, so there's no need to register the service provider manually. If auto-discovery is disabled the service provider can be registered by adding these records into providers array in config/app.php file:

This service provider will register the middleware that calls the logging itself and will allow configuring all the settings required for the package installation. To use a facade add this record to the aliases array:

IMPORTANT! By default, logging is disabled in the settings. This allows to configure the package after the installation and enable the logging once everything is ready. To activate the logging use an environment variable "RL_ENABLE". Alternatively, once the config file has been published, it is possible to describe a function that will activate the logging only for the requests of interest.

Here's an example of the function that describes the logging conditions:

In order to publish the config file execute next command:

Next options are available in the settings:

The default log storage is "database". For this storage to work correctly it is necessary to execute a migration to create a table for logs. In order to publish this migration execute this command:

It is possible to write custom data. To do this, the data should be passed to "put" method of "BwtTeam\LaravelRequestLogger\RequestLoggerRepository" class. For example:

Alternatively, a facade could be used:

License

This package uses MIT.


All versions of laravel-request-logger with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0.2
moontoast/math Version ^1.1.2
wyrihaximus/html-compress Version ^4.2
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 bwt-team/laravel-request-logger contains the following files

Loading the files please wait ....