PHPackages                             gadixsystem/visitors - 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. [Security](/categories/security)
4. /
5. gadixsystem/visitors

ActiveLibrary[Security](/categories/security)

gadixsystem/visitors
====================

"Simple Laravel Middleware to log vistors and block users"

3.0.0(1y ago)44.2k↓33.3%MITBladePHP ^7.1.3|^8.0CI failing

Since Jul 28Pushed 1y ago1 watchersCompare

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

READMEChangelog (8)Dependencies (2)Versions (12)Used By (0)

Visitors (Laravel Package)
==========================

[](#visitors-laravel-package)

Simple visitor middleware for your laravel project with UI and helpers!!

**Installation:**
-----------------

[](#installation)

From your command line run:

*composer require gadixsystem/visitors*

**Register the provider**

In config/app.php add the follow line:

```
 'providers' => [
        //Visitors
        gadixsystem\visitors\VisitorsServiceProvider::class,
  ]

```

**The publish methods**

You need to make some migrations: From your command line type:

```
php artisan vendor:publish --provider="gadixsystem\visitors\VisitorsServiceProvider" --tag=migrations

```

Now your migrations are in your database/migrations directory.

Run Migrations:

```
php artisan migrate

```

**The UI**
----------

[](#the-ui)

By default your UI is available in , but first you need to make 1 more step:

```
php artisan vendor:publish --provider="gadixsystem\visitors\VisitorsServiceProvider" --tag=views

```

With this command, the views of visitors package are availabe in your resources/views folder (Feel free to customize!).

### **Config file**

[](#config-file)

But... the permissions ?? No problem with that! The visitors package have a config file to customize your middleware:

Only run:

```
php artisan vendor:publish --provider="gadixsystem\visitors\VisitorsServiceProvider" --tag=config

```

And new file is appear in your config folder.

- Dashboard: true/false
- Prefix: The prefix of visitors UI
- Middleware: you can add additional middleware to your dashboard.

```
return [
 /**
  * Visual interface of visitors
  */
 'dashboard' => true,
 /**
  * Prefix for visitors route
  * Navigate to your app /visitors (or your new path to view interface)
  */
 'prefix' => 'visitors',
 /**
  * Middleware
  * Here you can put your prefers middleware to visitors dashboard
  */
 'middleware' => [
     'web',
     //'auth',
     'visitors'
     // ...
 ]
];

```

### *How to use?*

[](#how-to-use)

It's very simple, you only need to add **visitors** middleware to the routes for track:

- E.g:

```
Route::get('/', 'YourController@index')->middleware(['visitors']);

```

### *Helper*

[](#helper)

You can make your own dashboard:

- First, add VisitorsHelper to your Controller

```
use gadixsystem\visitors\VisitorsHelper;

```

- **Methods:**

    - **VisitorsHelper::getToday();**
    - **VisitorsHelper::getActive();**
    - **VisitorsHelper::getBlocked();**
    - **VisitorsHelper::getTotal();**
    - **VisitorsHelper::graphic();**

### *Test*

[](#test)

Run: `vendor/bin/phpunit vendor/gadixsystem/visitors/src/tests`

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance46

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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 ~191 days

Recently: every ~282 days

Total

10

Last Release

401d ago

Major Versions

1.0.3 → 2.0.02022-03-03

2.0.4 → 3.0.02025-04-13

PHP version history (2 changes)1.0.0PHP ^7.1.3

2.0.0PHP ^7.1.3|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16864637?v=4)[Gabriel](/maintainers/gadixsystem)[@gadixsystem](https://github.com/gadixsystem)

---

Top Contributors

[![gadixsystem](https://avatars.githubusercontent.com/u/16864637?v=4)](https://github.com/gadixsystem "gadixsystem (22 commits)")

---

Tags

laravellaravel-packagephpphp-librarymiddlewarelaravelsecurityaccessIPnetworkblockvisitors

### Embed Badge

![Health badge](/badges/gadixsystem-visitors/health.svg)

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

###  Alternatives

[akaunting/laravel-firewall

Web Application Firewall (WAF) package for Laravel

999465.8k2](/packages/akaunting-laravel-firewall)[skydiver/laravel-route-blocker

Block routes by IP

8272.4k](/packages/skydiver-laravel-route-blocker)[masterro/laravel-xss-filter

Filter user input for XSS but don't touch other html

41254.5k](/packages/masterro-laravel-xss-filter)[enlightn/laravel-security-checker

A Laravel package to scan your dependencies for known security vulnerabilities.

51173.4k](/packages/enlightn-laravel-security-checker)

PHPackages © 2026

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