PHPackages                             huchunguang/requestlogdb - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. huchunguang/requestlogdb

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

huchunguang/requestlogdb
========================

log all the information of request

4.0.1(6y ago)118MITPHP

Since Sep 9Pushed 6y ago1 watchersCompare

[ Source](https://github.com/huchunguang/requestlogdb)[ Packagist](https://packagist.org/packages/huchunguang/requestlogdb)[ RSS](/packages/huchunguang-requestlogdb/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (5)Used By (0)

Logging request info into DBserver for QNN project
==================================================

[](#logging-request-info-into-dbserver-for-qnn-project)

How To Use
----------

[](#how-to-use)

1. First, Pls.ensuring you have already installed the Laravel framework,then following the below the commnad

```
composer require "huchunguang/requestlogdb:4.0"
```

2. After installation,you're able to exectue the artisan's command to publish our configuation into you config folder

```
php artisan vendor:publish
```

now, you could see a list of provider of vendor,to opt the RequestLog provider to do this,by the way, you could directly use option to determine which provider you would like to publish at this time,as you can see the below sample

```
php artisan vendor:publish --provider=Qnn\RequestLog\RequestLogProvider
```

3. so far,you already completed the installation,then we just need to use it in your project,for that,you need to configure those keys into your .env conf.
    **request\_log\_ip**
    **request\_log\_port**
4. you can create a middleware to integrate the library,to refer the logrequestDB configration file,you can see all the fields the logging required, be aware of the type of value,and you could use an array to store the fields,after that,you just need call the method of send by using the Facade of RequestLog,almost like this

```
 $data = array(
            'user_id' => $user_id,
            'user_token' => $token,
            'app_id' => self::$app_id,
            'ud_id' => self::$ud_id,
            'api_name' => self::$api_name,
            'param' => self::$param,
            'request_method' => self::$request_method,
            'status' => self::$status,
            'err_code' => self::$err_code,
            'err_message' => self::$err_message,
            'user_sys' => self::$user_sys,
            'user_phone' => self::$user_phone,
            'user_ip' => self::$user_ip,
            'server_ip' => self::$server_ip,
            'host' => $request->getHost(),
            'end_time' => time(),
            'spend_time' => Dh::microTimeFloat() - self::$star_time
        );
        RequestLog::send($data);

```

License
-------

[](#license)

The library is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

2438d ago

Major Versions

2.0.0 → 3.0.02019-09-09

3.0.0 → 4.0.02019-09-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/32c3779d298e57f2590d73552248ba5ad72e248e7beffa89ef520242f7cd0086?d=identicon)[huchunguang](/maintainers/huchunguang)

---

Top Contributors

[![huchunguang](https://avatars.githubusercontent.com/u/16474105?v=4)](https://github.com/huchunguang "huchunguang (6 commits)")

### Embed Badge

![Health badge](/badges/huchunguang-requestlogdb/health.svg)

```
[![Health](https://phpackages.com/badges/huchunguang-requestlogdb/health.svg)](https://phpackages.com/packages/huchunguang-requestlogdb)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
