PHPackages                             thailv/robot-counter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. thailv/robot-counter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

thailv/robot-counter
====================

Count and report how many times a bot visit your website

00PHP

Since Jun 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Thaile98/robot-counter)[ Packagist](https://packagist.org/packages/thailv/robot-counter)[ RSS](/packages/thailv-robot-counter/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Robots counter
==============

[](#robots-counter)

This package allow you to track how many bots visit your website, their frequency and time execution for each request.

### Installation

[](#installation)

In your project folder, run

`composer require thailv/robot-counter`

After finish, publish vendor by this command:

`php artisan vendor:publish --provider="Thailv\RobotCounter\Providers\RobotCounterServiceProvider"`

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 `\Thailv\RobotCounter\Http\Middleware\RobotCounterMiddleware::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.

### Push api to reporter to save log robot counter

[](#push-api-to-reporter-to-save-log-robot-counter)

Logs are saved to reporter by command `robot-counter:report`, you can set schedule for run this command to push report every option time. You can use it to make report for specific day, use `php artisan robot-counter:report --help` to see usage.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

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/d9f3247b28d628a2f5bf57fa897bf3ff5b112223ced3ca4d5929279eac2eab6b?d=identicon)[Thailv](/maintainers/Thailv)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/thailv-robot-counter/health.svg)

```
[![Health](https://phpackages.com/badges/thailv-robot-counter/health.svg)](https://phpackages.com/packages/thailv-robot-counter)
```

###  Alternatives

[koalafacade/filament-navigation-holder

A holder package for filament navigation scroll position

1617.8k](/packages/koalafacade-filament-navigation-holder)

PHPackages © 2026

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