PHPackages                             themismin/laravel-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. [API Development](/categories/api)
4. /
5. themismin/laravel-visitor

ActiveLibrary[API Development](/categories/api)

themismin/laravel-visitor
=========================

Laravel api interface extension package

1.0.10(3y ago)0687↓33.3%MITPHPPHP &gt;=5.6.4

Since Aug 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/themismin/laravel-visitor)[ Packagist](https://packagist.org/packages/themismin/laravel-visitor)[ RSS](/packages/themismin-laravel-visitor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (12)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

```
	ThemisMin\LaravelVisitor\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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Every ~96 days

Recently: every ~134 days

Total

11

Last Release

1130d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c800de9c17265b0c85ee3c8e2be6f196b2dfb0c0a5692f5d7ca9e8ee6064df2?d=identicon)[themismin](/maintainers/themismin)

---

Top Contributors

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

---

Tags

responsejsonapilaravel

### Embed Badge

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

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

###  Alternatives

[obiefy/api-response

Simple Laravel package to return Json responses.

17324.6k](/packages/obiefy-api-response)[nilportugues/laravel5-json-api-dingo

Laravel5 JSONAPI and Dingo together to build APIs fast

311.5k](/packages/nilportugues-laravel5-json-api-dingo)[nilportugues/laravel5-haljson

Laravel 5 HAL+JSON API Transformer Package

151.0k](/packages/nilportugues-laravel5-haljson)[nicklaw5/larapi

A simple Laravel 5 class for handling json api responses.

111.5k](/packages/nicklaw5-larapi)

PHPackages © 2026

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