PHPackages                             weboap/visitor - 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. [Framework](/categories/framework)
4. /
5. weboap/visitor

AbandonedArchivedLibrary[Framework](/categories/framework)

weboap/visitor
==============

log your visitors in db, page hits, and generate visit counter for Laravel 5

v2.0.5(8y ago)9714.3k30[1 issues](https://github.com/weboAp/Visitor/issues)MITPHPPHP &gt;=5.4.0

Since Mar 22Pushed 3y agoCompare

[ Source](https://github.com/weboAp/Visitor)[ Packagist](https://packagist.org/packages/weboap/visitor)[ RSS](/packages/weboap-visitor/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (7)Dependencies (3)Versions (9)Used By (0)

\#Visitor
=========

[](#visitor)

Register your visitors, Page hits for Laravel 5

for laravel 4 use ver v1.0.0

### Installation

[](#installation)

The recommended way to install Visitor is through composer.

Step 1
------

[](#step-1)

run

```
composer require weboap/visitor
```

Step 2
------

[](#step-2)

Add if your laravel version is &lt; 5.5

```
	Weboap\Visitor\VisitorServiceProvider::class
```

to the list of service providers in app/config/app.php

Step 3
------

[](#step-3)

Migrate the Visitor Table Run

```
php artisan vendor:publish
```

then

```
php artisan migrate
```

to migrate visitor table

the config.php will be copied to /config at the same time

```
/config/visitor.php
```

costumize it accordinly

Step 5 (Optional)
-----------------

[](#step-5-optional)

Visit

download GeoLite2-City.mmdb

place it in (create the geo directory)

```
storage/geo/
```

or where ever you want just adjust the package config to reflect the new location, it's used to geo locate visitors

### Usage

[](#usage)

```
Visitor::log();   //log in db visitor ip, geo location, hit counter

Visitor::get();
Visitor::get( $ip );   //fetch ip record

Visitor::forget( $ip ); //delete ip from log

Visitor::has( $ip );   // checkk if visitor ip exist in log

Visitor::count()  // return count of all site registred unique visitors

Visitor::all();  // all records as array

Visitor::all(true);  // all records as collection

Visitor::clicks(); //total of all clicks

Visitor::range($date_start, $date_end); // visitors count in a date range;
```

\###Credits This product Uses GeoLite2 data created by MaxMind, whenever available.

Enjoy!

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Every ~180 days

Recently: every ~204 days

Total

8

Last Release

3181d ago

Major Versions

0.1.0 → v1.0.02014-07-25

v1.0.0 → v2.0.02015-05-08

PHP version history (2 changes)0.1.0PHP &gt;=5.3.0

v2.0.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/80df2d1cdc513c528f76de1a36a8088b04d84dd22395dd1db129f9e23f62d5c0?d=identicon)[weboap](/maintainers/weboap)

---

Top Contributors

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

---

Tags

logframeworklaravelcountervisitorshitsclicks

### Embed Badge

![Health badge](/badges/weboap-visitor/health.svg)

```
[![Health](https://phpackages.com/badges/weboap-visitor/health.svg)](https://phpackages.com/packages/weboap-visitor)
```

###  Alternatives

[rebing/graphql-laravel

Laravel wrapper for PHP GraphQL

2.2k7.1M26](/packages/rebing-graphql-laravel)[graham-campbell/markdown

Markdown Is A CommonMark Wrapper For Laravel

1.3k7.1M64](/packages/graham-campbell-markdown)[graham-campbell/manager

Manager Provides Some Manager Functionality For Laravel

39221.1M134](/packages/graham-campbell-manager)[lanin/laravel-api-debugger

Easily debug your JSON API.

2311.8M](/packages/lanin-laravel-api-debugger)[laravel-lang/publisher

Localization publisher for your Laravel application

2167.7M24](/packages/laravel-lang-publisher)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)

PHPackages © 2026

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