Download the PHP package yesccx/laravel-database-logger without Composer

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

Database-Logger

记录数据库MySQL、Mongo等执行日志,支持多数Laravel版本

目录

功能特点

运行环境

PHP版本
PHP >= 7.0
Laravel版本 包版本 支持状态
9.x 1.0.x 支持
8.x 1.0.x 支持
7.x 1.0.x 支持
6.x 1.0.x 支持
5.8.x 1.0.x 支持
5.7.x 1.0.x 支持
5.6.x 1.0.x 支持

开始使用

1. 安装

2. 初始化

发布配置文件,ServiceProvider等。

如果需要将日志记录到数据表中,还需要提前初始化对应的日志记录表

3. 配置

env配置中开启记录器,并指定记录器的驱动。

PS: 如果以数据库驱动,需要先准备好数据表。在初始化时执行相关的迁移文件即可

4. 使用

API

临时禁用日志记录

如果想在某些情况下临时禁用日志记录功能,可以执行以下操作:

自定义记录器

当需要将日志内容以别的方式记录时,可以通过自定义记录器实现

1. 定义记录器:

2. 使用自定义记录器:

功能清单

License

MIT


All versions of laravel-database-logger with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
laravel/framework Version >=5.6
psr/log Version ^1.0|^2.0|^3.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 yesccx/laravel-database-logger contains the following files

Loading the files please wait ....