PHPackages                             bad-mushroom/laravel-tourist - 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. bad-mushroom/laravel-tourist

ActiveLibrary

bad-mushroom/laravel-tourist
============================

Visitor tracking and analytics for Laravel apps.

v0.1.0(4y ago)064MITPHP

Since Oct 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bad-mushroom/laravel-tourist)[ Packagist](https://packagist.org/packages/bad-mushroom/laravel-tourist)[ RSS](/packages/bad-mushroom-laravel-tourist/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Laravel Tourist
===============

[](#laravel-tourist)

A simple package for tracking unique visits, utm parameters, and model views.

Installation
------------

[](#installation)

### Install Package

[](#install-package)

```
composer require bad-mushroom/laravel-tourist

```

### Initialize

[](#initialize)

```
php artisan migrate

```

The migration will create two new tables: `tour_sessions``tour_visits`

### Register Middleware

[](#register-middleware)

In App\\Http\\Kernel,

```
'web' => ]
    ...
    \BadMushroom\Tourist\Middleware\Tourism::class,
];

```

or apply the middleware to a specifc route:

```
Route::get('/', function () {
    return view('welcome');
})->middleware('tourism');

```

### Configuration

[](#configuration)

Run `php artisan vendor:publish` to publish the `config/tourist.php` config file where you can modify some settings.

Usage
-----

[](#usage)

### Traits

[](#traits)

Adding the `BadMushroom\LaravelTourist\Tourable` trait to your models will will allow you to use the `visits` relationship.

### Facade

[](#facade)

```
Tour::visit($model)

```

### Commands

[](#commands)

Running `php artisan tourist::clear` will remove all expired tourist sessions and visits. YOu can canfigure how many days to keep data in the config file.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

Total

2

Last Release

1656d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f1a3173fa999f6045bcd8de4920098e50fbcf72e976175c9254cce938d9f0253?d=identicon)[bad-mushroom](/maintainers/bad-mushroom)

---

Top Contributors

[![bad-mushroom](https://avatars.githubusercontent.com/u/381203?v=4)](https://github.com/bad-mushroom "bad-mushroom (7 commits)")

---

Tags

analyticsutm

### Embed Badge

![Health badge](/badges/bad-mushroom-laravel-tourist/health.svg)

```
[![Health](https://phpackages.com/badges/bad-mushroom-laravel-tourist/health.svg)](https://phpackages.com/packages/bad-mushroom-laravel-tourist)
```

###  Alternatives

[hisorange/browser-detect

Browser &amp; Mobile detection package for Laravel.

1.1k10.1M50](/packages/hisorange-browser-detect)[nelmio/security-bundle

Extra security-related features for Symfony: signed/encrypted cookies, HTTPS/SSL/HSTS handling, cookie session storage, ...

68112.8M27](/packages/nelmio-security-bundle)[pragmarx/tracker

A Laravel Visitor Tracker

2.9k300.0k1](/packages/pragmarx-tracker)[shetabit/visitor

Laravel visitor

565578.2k8](/packages/shetabit-visitor)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[bolt/core

🧿 Bolt Core

585142.5k54](/packages/bolt-core)

PHPackages © 2026

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