PHPackages                             taymaz/laravel-visitcounter - 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. taymaz/laravel-visitcounter

ActiveLibrary

taymaz/laravel-visitcounter
===========================

laravel package to count pages and posts visits

1.0(3y ago)05MITPHP

Since Apr 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/taymazmostafaei/laravel-visit-counter)[ Packagist](https://packagist.org/packages/taymaz/laravel-visitcounter)[ RSS](/packages/taymaz-laravel-visitcounter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/bc973dc7f7f4a3da91a61dad58a4cd43cbd2850c29ac9dd878ba499365b29792/687474703a2f2f706f7365722e707567782e6f72672f7461796d617a2f6c61726176656c2d7669736974636f756e7465722f76)](https://packagist.org/packages/taymaz/laravel-visitcounter)[![Total Downloads](https://camo.githubusercontent.com/ba8cb3884313365131677348b947eea4e4d6c5c5fa96f3f8234d28602c7e01dd/687474703a2f2f706f7365722e707567782e6f72672f7461796d617a2f6c61726176656c2d7669736974636f756e7465722f646f776e6c6f616473)](https://packagist.org/packages/taymaz/laravel-visitcounter)[![Latest Unstable Version](https://camo.githubusercontent.com/4a04e02c75497668ff22bc3f5a6c70c0b8e62c49dc2a3a10f966880fb2131da8/687474703a2f2f706f7365722e707567782e6f72672f7461796d617a2f6c61726176656c2d7669736974636f756e7465722f762f756e737461626c65)](https://packagist.org/packages/taymaz/laravel-visitcounter) [![License](https://camo.githubusercontent.com/a71643e2119fdb33bf017daf7792b52872fb503e6e539bd05565dd415bd14bcd/687474703a2f2f706f7365722e707567782e6f72672f7461796d617a2f6c61726176656c2d7669736974636f756e7465722f6c6963656e7365)](https://packagist.org/packages/taymaz/laravel-visitcounter)[![PHP Version Require](https://camo.githubusercontent.com/f781ed410d7aa4222a6a4d5901529d22e43a3f9e98bceef19f4b12217a3670de/687474703a2f2f706f7365722e707567782e6f72672f7461796d617a2f6c61726176656c2d7669736974636f756e7465722f726571756972652f706870)](https://packagist.org/packages/taymaz/laravel-visitcounter)

[![screenshot](https://github.com/taymazmostafaei/laravel-visit-counter/raw/main/Untitled.png?raw=true)](https://github.com/taymazmostafaei/laravel-visit-counter/blob/main/Untitled.png?raw=true)

laravel-visitcounter
====================

[](#laravel-visitcounter)

laravel package to count pages and posts visits

Install
-------

[](#install)

From your terminal:

```
composer require taymaz/laravel-visitcounter
```

This starts to install laravel-visitcounter package its working with composer so you can use it to easy.

Basic use
---------

[](#basic-use)

for starting you need to create a file named config to setup backup options like directories and backup export path and ...

### First publish package service provider

[](#first-publish-package-service-provider)

You have to this part of code in `config/app.php`

```
Taymaz\Visitcounter\VisitCounterServiceProvider::class,
```

### then set middleware

[](#then-set-middleware)

package provide middleware to count each visits from your particular route./n example:

```
Route::get('/hello', [HelloWorld::class, 'hello'])->middleware('visitcount');
```

give middleware `visitcount` \\n it can handle uri passed parameters.

### get visits result

[](#get-visits-result)

have easy acess for route visits in your controller.

```
public function hello(Request $request){
    $request->input('views'); //465
}
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1137d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/taymaz-laravel-visitcounter/health.svg)

```
[![Health](https://phpackages.com/badges/taymaz-laravel-visitcounter/health.svg)](https://phpackages.com/packages/taymaz-laravel-visitcounter)
```

PHPackages © 2026

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