PHPackages                             iamcoming3/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. iamcoming3/laravel-visits

ActiveLibrary[Caching](/categories/caching)

iamcoming3/laravel-visits
=========================

Laravel Redis visits counter for Eloquent models

3.0.3(4y ago)05MITPHPPHP ^7.3 || ^8.0

Since Sep 14Pushed 4y agoCompare

[ Source](https://github.com/IamComing3/laravel-visits)[ Packagist](https://packagist.org/packages/iamcoming3/laravel-visits)[ Docs](https://github.com/awssat/laravel-visits)[ RSS](/packages/iamcoming3-laravel-visits/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (10)Versions (31)Used By (0)

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)

[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZJFHUL6CVPX2G)

> 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)

### Financial Contributors

[](#financial-contributors)

Become a financial contributor and help us sustain our community. \[[Contribute](https://opencollective.com/laravel-visits/contribute)\]

#### Individuals

[](#individuals)

[![](https://camo.githubusercontent.com/7e2e3a4f64c5fcc92eeb9387cdab6bbdff122bd3d5b43873c872ed9f0be97562/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c61726176656c2d7669736974732f696e646976696475616c732e7376673f77696474683d383930)](https://opencollective.com/laravel-visits)

#### Organizations

[](#organizations)

Support this project with your organization. Your logo will show up here with a link to your website. \[[Contribute](https://opencollective.com/laravel-visits/contribute)\]

[![](https://camo.githubusercontent.com/c3b2258292a419b243f589746b73ac3ee65c4dac3dc136eb0d26d7a20f847140/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c61726176656c2d7669736974732f6f7267616e697a6174696f6e2f302f6176617461722e737667)](https://opencollective.com/laravel-visits/organization/0/website)[![](https://camo.githubusercontent.com/87a52336dafb10bd9aa740ec418135ab5ff66b5457f67630452af563ea33e9eb/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c61726176656c2d7669736974732f6f7267616e697a6174696f6e2f312f6176617461722e737667)](https://opencollective.com/laravel-visits/organization/1/website)[![](https://camo.githubusercontent.com/d4ada338bfce01435622d6ff9148da3030fabbc043d06e1452d2b61c0627a93b/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c61726176656c2d7669736974732f6f7267616e697a6174696f6e2f322f6176617461722e737667)](https://opencollective.com/laravel-visits/organization/2/website)[![](https://camo.githubusercontent.com/906f684b172786ffdee66d31d5a36b4a06815a5a6722d306344e928a424d265e/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c61726176656c2d7669736974732f6f7267616e697a6174696f6e2f332f6176617461722e737667)](https://opencollective.com/laravel-visits/organization/3/website)[![](https://camo.githubusercontent.com/4c5aa3c3644360e2aa672ff4cff53fa986936244bd46d8ab04c3d2cf2121fadf/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c61726176656c2d7669736974732f6f7267616e697a6174696f6e2f342f6176617461722e737667)](https://opencollective.com/laravel-visits/organization/4/website)[![](https://camo.githubusercontent.com/eef4891724d7b6bea3577a6300d793c66417a035e4f3e38061c4cd184e1ca9e2/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c61726176656c2d7669736974732f6f7267616e697a6174696f6e2f352f6176617461722e737667)](https://opencollective.com/laravel-visits/organization/5/website)[![](https://camo.githubusercontent.com/4cf9959c0f1704c2277ec2388df7109a3be425b3ba668951a31cbab62c9cb2f7/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c61726176656c2d7669736974732f6f7267616e697a6174696f6e2f362f6176617461722e737667)](https://opencollective.com/laravel-visits/organization/6/website)[![](https://camo.githubusercontent.com/5aa3c10b5130c123fb92a3e26b4fd56856a4599cfc6d278fb4b8f48edf32079a/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c61726176656c2d7669736974732f6f7267616e697a6174696f6e2f372f6176617461722e737667)](https://opencollective.com/laravel-visits/organization/7/website)[![](https://camo.githubusercontent.com/d0b1cf5960bbb56e434214d242dc82525e170be1d96ee47aef3dc4077b37f560/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c61726176656c2d7669736974732f6f7267616e697a6174696f6e2f382f6176617461722e737667)](https://opencollective.com/laravel-visits/organization/8/website)[![](https://camo.githubusercontent.com/eaacfaaa542c86bcd04404af7cc5aa86fa257d3ef6649e07b836ef36a78788c2/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6c61726176656c2d7669736974732f6f7267616e697a6174696f6e2f392f6176617461722e737667)](https://opencollective.com/laravel-visits/organization/9/website)

License
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 51.3% 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 ~55 days

Recently: every ~170 days

Total

30

Last Release

1596d ago

Major Versions

1.5.3 → 2.0.02019-09-10

2.2.1 → 3.0.02020-09-13

PHP version history (7 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

### Community

Maintainers

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

---

Top Contributors

[![BSN4](https://avatars.githubusercontent.com/u/199647?v=4)](https://github.com/BSN4 "BSN4 (59 commits)")[![abdumu](https://avatars.githubusercontent.com/u/114794?v=4)](https://github.com/abdumu "abdumu (39 commits)")[![SamuelNitsche](https://avatars.githubusercontent.com/u/24483576?v=4)](https://github.com/SamuelNitsche "SamuelNitsche (5 commits)")[![IamComing3](https://avatars.githubusercontent.com/u/16791768?v=4)](https://github.com/IamComing3 "IamComing3 (2 commits)")[![realrashid](https://avatars.githubusercontent.com/u/15607685?v=4)](https://github.com/realrashid "realrashid (2 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)")[![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)")[![ahoiroman](https://avatars.githubusercontent.com/u/23051150?v=4)](https://github.com/ahoiroman "ahoiroman (1 commits)")[![d8vjork](https://avatars.githubusercontent.com/u/2331052?v=4)](https://github.com/d8vjork "d8vjork (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

phplaravelpackagerediscachecountervisits

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

973172.3k2](/packages/awssat-laravel-visits)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k55.4M8.3k](/packages/larastan-larastan)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k9.0M69](/packages/spatie-laravel-responsecache)[spiritix/lada-cache

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

592456.3k2](/packages/spiritix-lada-cache)[nexxai/laravel-cfcache

A handful of Cloudflare cache helpers for Laravel

13314.7k](/packages/nexxai-laravel-cfcache)[calebdw/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

15118.7k4](/packages/calebdw-larastan)

PHPackages © 2026

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