PHPackages                             redbox/tracker - 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. redbox/tracker

ActiveLibrary

redbox/tracker
==============

Real-time check the visitors on your Laravel installation.

v1.0(5y ago)7273MITPHPPHP &gt;=7.3

Since May 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/johnnymast/Redbox-tracker)[ Packagist](https://packagist.org/packages/redbox/tracker)[ Fund](https://www.paypal.me/johnnymast)[ GitHub Sponsors](https://github.com/johnnymast)[ RSS](/packages/redbox-tracker/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (4)Versions (4)Used By (0)

[![](https://user-images.githubusercontent.com/121194/82691564-6b57da80-9c5e-11ea-87ec-639ad2255e8a.png)](https://user-images.githubusercontent.com/121194/82691564-6b57da80-9c5e-11ea-87ec-639ad2255e8a.png)
Tracking Movement
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#tracking-movement)

[![](https://github.com/johnnymast/redbox-tracker/workflows/Phpcs/badge.svg)](https://github.com/johnnymast/redbox-tracker/actions?query=workflow%3APhpcs)[![](https://camo.githubusercontent.com/5c1ba2edc1e834342c4a91aefe307aee57d5a2042b3ab352de442dfb25e10160/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f686e6e796d6173742f726564626f782d747261636b65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/johnnymast/redbox-tracker/?branch=master)[![](https://camo.githubusercontent.com/1793a912fee30e82dc1e0f8440485d5af2222ca98eb2978ad3506648d0634621/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f686e6e796d6173742f726564626f782d747261636b65722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/johnnymast/redbox-tracker/?branch=master)[![](https://camo.githubusercontent.com/d9af806b57229c05a9423e5c87032d88e7a9331e6ab40cc010d049f0aed9855b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f686e6e796d6173742f726564626f782d747261636b65722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/johnnymast/redbox-tracker/build-status/master)

Redbox-tracker allows helps you to track visiting traffic to your Laravel website. New visitors along with their requests will be saved to the database.

Getting started
===============

[](#getting-started)

Prerequisites
-------------

[](#prerequisites)

We don't require much, but these are the minimum requirements for using Redbox-tracker.

- PHP 7.3
- Laravel 7 or higher

There is one additional requirement if you are contributing to this package. For development on the package itself, we require `pdo_sqlite` for testing.

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

[](#installation)

The package can be installed using composer.

```
composer require redbox/tracker
```

The package will automatically register itself.

Publish configuration file:

```
php artisan vendor:publish --provider="Redbox\Tracker\Providers\TrackerServiceProvider"
```

Install the database tables:

```
php artisan migrate
```

Create a listener for new visitors in your project:

```
php artisan make:listener NewVisitorListener
```

In `App\Providers\EventServiceProvider` and update the `$listen` array with:

```
    protected $listen = [
        // --
        \Redbox\Tracker\Events\NewVisitorEvent::class => [
            \App\Listeners\NewVisitorListener::class,
        ]
        // --
    ];
```

In `App\Listeners\NewVisitorListener` you now have access to the visitor data from `$event->visitor`.

```
    /**
     * Handle the event.
     *
     * @param  object  $event
     * @return void
     */
    public function handle($event)
    {
        dd($event->visitor);
    }
```

Documentation
-------------

[](#documentation)

For more detailed information about how to use this package, I would like to send you to the [project wiki](https://github.com/johnnymast/redbox-tracker/wiki).

Disclaimer
----------

[](#disclaimer)

This project is inspired by [Laravel Visitor Tracker](https://github.com/voerro/laravel-visitor-tracker). I created this version of this software because I need that functionality for a project of my own. This means I want all my dependencies for that projects 'Inhouse'.

Author
------

[](#author)

This package is created and maintained by [Johnny Mast](mailto:mastjohnny@gmail.com). For feature requests or suggestions you could consider sending me an e-mail.

Enjoy
-----

[](#enjoy)

Oh and if you've come down this far, you might as well [follow me](https://twitter.com/mastjohnny) on Twitter. If you like this software please consider giving it a start rating on GitHub.

License
-------

[](#license)

MIT License

Copyright (c) 2020 Johnny Mast

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Total

3

Last Release

2170d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d5a228d3118e6b9e3c3c189ea1c8d3a13ed4c9ac312b9217654c81f6d4214cc8?d=identicon)[johnnymast](/maintainers/johnnymast)

---

Top Contributors

[![johnnymast](https://avatars.githubusercontent.com/u/121194?v=4)](https://github.com/johnnymast "johnnymast (132 commits)")

---

Tags

analyticseventslaravelphpreal-timerealtime-analyticslaraveleventsreal-timeanalytics

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/redbox-tracker/health.svg)

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

###  Alternatives

[qodenl/laravel-posthog

Laravel implementation for Posthog

3372.7k](/packages/qodenl-laravel-posthog)[ozankurt/google-analytics

Laravel Google Analytics

7616.7k](/packages/ozankurt-google-analytics)[classiebit/eventmie

Run your own Events business with Eventmie Pro. Use it as event ticket selling website or event management platform on your own domain.

1872.0k](/packages/classiebit-eventmie)

PHPackages © 2026

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