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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bad-mushroom/laravel-tourist

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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 3w 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 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

1709d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/381203?v=4)[Chris Sprague](/maintainers/bad-mushroom)[@bad-mushroom](https://github.com/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.9M61](/packages/hisorange-browser-detect)[shetabit/visitor

Laravel visitor

567637.9k14](/packages/shetabit-visitor)[contao/core-bundle

Contao Open Source CMS

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

Contao Open Source CMS development package

43114.4k2](/packages/contao-contao)[payone-gmbh/shopware-6

PAYONE Payment Plugin

2177.6k](/packages/payone-gmbh-shopware-6)

PHPackages © 2026

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