PHPackages                             awssat/laravel-visits - 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. [Caching](/categories/caching)
4. /
5. awssat/laravel-visits

ActiveLibrary[Caching](/categories/caching)

awssat/laravel-visits
=====================

Laravel Redis visits counter for Eloquent models

6.2.1(2mo ago)975163.6k↑47.1%88[3 issues](https://github.com/awssat/laravel-visits/issues)[1 PRs](https://github.com/awssat/laravel-visits/pulls)2MITPHPPHP ^8.0CI passing

Since Sep 14Pushed 2mo ago19 watchersCompare

[ Source](https://github.com/awssat/laravel-visits)[ Packagist](https://packagist.org/packages/awssat/laravel-visits)[ Docs](https://github.com/awssat/laravel-visits)[ GitHub Sponsors](https://github.com/awssat)[ RSS](/packages/awssat-laravel-visits/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (11)Versions (42)Used By (2)

Laravel Visits
==============

[](#laravel-visits)

[![aravel-visits](https://camo.githubusercontent.com/6e6d901a2eddd68824b822e793b37c3c801f331138832aef45106629da5bb7ec/68747470733a2f2f692e696d6775722e636f6d2f7848417a6c30472e706e67)](https://camo.githubusercontent.com/6e6d901a2eddd68824b822e793b37c3c801f331138832aef45106629da5bb7ec/68747470733a2f2f692e696d6775722e636f6d2f7848417a6c30472e706e67)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d64f062a01346a21a00d35f812640fe4710088f3268d6ca4f89e419488bec28c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6177737361742f6c61726176656c2d7669736974732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/awssat/laravel-visits)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/3bb5a6f5449760907d959f12d73c98102809baaa5b73ef1befda4464cd36656f/68747470733a2f2f7472617669732d63692e6f72672f6177737361742f6c61726176656c2d7669736974732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/awssat/laravel-visits)[![Quality Score](https://camo.githubusercontent.com/bea57f2aafd0d5d4f31947b437cb5b69d210b715cbd4dde323a6ecb91e9e1a6c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6177737361742f6c61726176656c2d7669736974732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/awssat/laravel-visits)[![Total Downloads](https://camo.githubusercontent.com/8588d6d522b45d71da243499fbaffb1d2f81f183b8541a977bfccd0e696b7c55/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6177737361742f6c61726176656c2d7669736974732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/awssat/laravel-visits)

> Please support our work here with donation so we can contuine improve this package once we raise fund we will contuine work on this package

Laravel Visits is a counter that can be attached to any model to track its visits with useful features like IP-protection and lists caching.

Install
-------

[](#install)

To get started with Laravel Visits, use Composer to add the package to your project's dependencies (or read more about installlation on [Installation](docs/3_installation.md) page):

```
composer require awssat/laravel-visits
```

Docs &amp; How-to use &amp; configure
-------------------------------------

[](#docs--how-to-use--configure)

- [Introduction](docs/1_introduction.md)
- [Requirements](docs/2_requirements.md)
- [Installation](docs/3_installation.md)
- [Quick start](docs/4_quick-start.md)
- [Increments and decrements](docs/5_increments-and-decrements.md)
- [Retrieve visits and stats](docs/6_retrieve-visits-and-stats.md)
- [Visits lists](docs/7_visits-lists.md)
- [Clear and reset values](docs/8_clear-and-reset-values.md)

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Credits
-------

[](#credits)

- [Bader](https://github.com/if4lcon)
- [All Contributors](../../contributors)

Todo
----

[](#todo)

- An export command to save visits of any periods to a table on the database.

Contributors
------------

[](#contributors)

### Code Contributors

[](#code-contributors)

This project exists thanks to all the people who contribute. \[[Contribute](CONTRIBUTING.md)\]. [![](https://camo.githubusercontent.com/8f06710406e61c8936e8a494cb8c3427b4755263fcd4c395c6dbb0b2cd30be02/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c61726176656c2d7669736974732f636f6e7472696275746f72732e7376673f77696474683d38393026627574746f6e3d66616c7365)](https://github.com/awssat/laravel-visits/graphs/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

67

—

FairBetter than 100% of packages

Maintenance83

Actively maintained with recent releases

Popularity57

Moderate usage in the ecosystem

Community32

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 54.4% 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 ~83 days

Recently: every ~234 days

Total

38

Last Release

86d ago

Major Versions

1.5.3 → 2.0.02019-09-10

2.2.1 → 3.0.02020-09-13

3.0.3 → 4.0.02022-08-13

4.1.0 → 5.0.02023-03-02

5.0.0 → 6.0.02023-07-30

PHP version history (8 changes)1.0.0PHP ~5.6|~7.0

2.0.0PHP ~7.1

2.1.x-devPHP ~7.2

2.1.0PHP ^7.2

3.0.0PHP ^7.3

3.0.2PHP ^7.3|^8.0

3.0.3PHP ^7.3 || ^8.0

5.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d1839100c9cfd19f7ae04492a1c0b08c09e0956479f7a1dc4006de315c0f62e?d=identicon)[if4lcon](/maintainers/if4lcon)

---

Top Contributors

[![BSN4](https://avatars.githubusercontent.com/u/199647?v=4)](https://github.com/BSN4 "BSN4 (86 commits)")[![abdumu](https://avatars.githubusercontent.com/u/114794?v=4)](https://github.com/abdumu "abdumu (48 commits)")[![nicola-diguida](https://avatars.githubusercontent.com/u/144777048?v=4)](https://github.com/nicola-diguida "nicola-diguida (5 commits)")[![SamuelNitsche](https://avatars.githubusercontent.com/u/24483576?v=4)](https://github.com/SamuelNitsche "SamuelNitsche (5 commits)")[![AbdullahGhanem](https://avatars.githubusercontent.com/u/5055892?v=4)](https://github.com/AbdullahGhanem "AbdullahGhanem (2 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![realrashid](https://avatars.githubusercontent.com/u/15607685?v=4)](https://github.com/realrashid "realrashid (2 commits)")[![ahoiroman](https://avatars.githubusercontent.com/u/23051150?v=4)](https://github.com/ahoiroman "ahoiroman (1 commits)")[![malicucen](https://avatars.githubusercontent.com/u/28218845?v=4)](https://github.com/malicucen "malicucen (1 commits)")[![monkeywithacupcake](https://avatars.githubusercontent.com/u/7316730?v=4)](https://github.com/monkeywithacupcake "monkeywithacupcake (1 commits)")[![d8vjork](https://avatars.githubusercontent.com/u/2331052?v=4)](https://github.com/d8vjork "d8vjork (1 commits)")[![qiutuleng](https://avatars.githubusercontent.com/u/30284139?v=4)](https://github.com/qiutuleng "qiutuleng (1 commits)")[![vrajroham](https://avatars.githubusercontent.com/u/12662173?v=4)](https://github.com/vrajroham "vrajroham (1 commits)")[![joe94113](https://avatars.githubusercontent.com/u/66311497?v=4)](https://github.com/joe94113 "joe94113 (1 commits)")[![KadonWills](https://avatars.githubusercontent.com/u/35223630?v=4)](https://github.com/KadonWills "KadonWills (1 commits)")

---

Tags

counterincrementlaravellaravel-counterlaravel-packagelaravel-statslaravel-visitsphpredisstatsvisitorvisitsphplaravelpackagerediscachecountervisits

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/awssat-laravel-visits/health.svg)

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

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.2M51](/packages/spatie-laravel-responsecache)[spiritix/lada-cache

A Redis based, automated and scalable database caching layer for Laravel

591444.8k2](/packages/spiritix-lada-cache)[antennaio/laravel-clyde

Image uploads and manipulation for Laravel, a wrapper around Glide

292.6k](/packages/antennaio-laravel-clyde)[craftsys/laravel-redis-session-enhanced

Enhanced redis driver for sessions in Laravel

106.6k](/packages/craftsys-laravel-redis-session-enhanced)

PHPackages © 2026

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