PHPackages                             dangquangha/request-logging - 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. dangquangha/request-logging

ActiveLibrary

dangquangha/request-logging
===========================

Count and report how many times a bot visit your website

01PHP

Since Mar 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/dangquangha/request-logging)[ Packagist](https://packagist.org/packages/dangquangha/request-logging)[ RSS](/packages/dangquangha-request-logging/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Request Logging
===============

[](#request-logging)

This package allow you to track the following information:

- How many times do bots visit?
- How many time do users search or go to page search?
- How many times do users visit your website through Google or CocCoc?

### Installation

[](#installation)

In your project folder, run

```
composer require dangquangha/request-logging

```

Aftef finish, publish vendor by this command:

```
php artisan vendor:publish --provider="Workable\RequestLogging\RequestLoggingServiceProvider"

```

and `php artisan migrate` to run migration file

### Usage Instructions

[](#usage-instructions)

This package works by using a middleware, logging every request performed by bots in a log file, you can rename the middleware in `config/robots_counter.php` file.

If you want the middleware works for every request, just put its class `\Workable\RequestLogging\Middleware\RobotsCounterMiddleware::class` in array `$middleware ` in `app/Http/Kernel.php`But the best practise is using this middleware for routes need reporting for better performance. Also, you can config your accepted request methods you want to be in your log.

If you want to export the obtained information to the database, you can run the following commands:

**To report robots visited times:**

```
php artisan robot:report --date=today

```

**To report users searched times:**

```
php artisan user-search:report --date=today

```

**To report users visit your website through Google or CocCoc:**

```
php artisan refer:report --date=today

```

I support some another options

```
--date=today

--date=yesterday

--date=week

--date=month

--date=range --start=YYYY-MM-DD --end=YYYY-MM-DD

```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fab109df8055b011ed81e63c41e7494718fe20d5a8f3422893726379b191202c?d=identicon)[quangha2611](/maintainers/quangha2611)

---

Top Contributors

[![dangquangha](https://avatars.githubusercontent.com/u/55936874?v=4)](https://github.com/dangquangha "dangquangha (15 commits)")

### Embed Badge

![Health badge](/badges/dangquangha-request-logging/health.svg)

```
[![Health](https://phpackages.com/badges/dangquangha-request-logging/health.svg)](https://phpackages.com/packages/dangquangha-request-logging)
```

PHPackages © 2026

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